You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, thank you for sharing your magnificent work.
I understand that functions that will be performed when the alarm is triggered must be set in the function
function handleExtras(data)
What I want to achieve is that when the alarm is triggered, the function I place there dont open the app, just perform the actions and then show a notification to the user if needed. How can I do that? I tried placing navigator.app.exitApp; but doesnt seem to exit the app.
I dont want to annoy the user and dont want the user know the app was running in the background.
I also noted your background service plugin but dont know java very well to program in native. Also, since this alarm will work only once at day, Im not sure if its viable to use a background service, cause it seems to waste device's resources that way (not sure about this last thing).
Thank you
The text was updated successfully, but these errors were encountered:
Unfortunately neither plugin will work the way you want.
The Scheduler plugin is designed to launch Cordova/ Phonegap app - so great for running Javascript, but will take over the screen.
The Background plugin is designed to run code in the background (nothing on screen) - but the logic has to written in Java - plus it is expecting to run on a regular basis - so might be too much for once a day.
Both plugins can be amended to better reflect what you want, but it would require java work
Thank you so much for your reply. I havent solved this feature for my app yet.
I believe I can handle the java code following tuts, but as you said, your background service doesnt fit this particular schedule.
Is there a way to modify your scheduler plugin to run specific java code without opening the app? What files in particular should I edit or where should I place the code to run and not opening the app.
Hello,
First of all, thank you for sharing your magnificent work.
I understand that functions that will be performed when the alarm is triggered must be set in the function
function handleExtras(data)
What I want to achieve is that when the alarm is triggered, the function I place there dont open the app, just perform the actions and then show a notification to the user if needed. How can I do that? I tried placing navigator.app.exitApp; but doesnt seem to exit the app.
I dont want to annoy the user and dont want the user know the app was running in the background.
I also noted your background service plugin but dont know java very well to program in native. Also, since this alarm will work only once at day, Im not sure if its viable to use a background service, cause it seems to waste device's resources that way (not sure about this last thing).
Thank you
The text was updated successfully, but these errors were encountered: