All the toggles are disabled
Hi, i install the plugin from the command line, i'm trying the example, i'm on android, but all the toggles are disable, i can't click the toggle to start the service. Thanks
Update: i think my code stops working after this line
var myService = cordova.require('com.red_folder.phonegap.plugin.backgroundservice.BackgroundService');
Ive got the same issue the code not working after this line! var myService = cordova.require('com.red_folder.phonegap.plugin.backgroundservice.BackgroundService');
Hi, I was able to enable the buttons but I am getting alert('Invalid action'); on the UI.
I have had same issue, solved moving "myService = cordova.require('com.red_folder.phonegap.plugin.backgroundservice.BackgroundService');" into "deviceready" (see index.html).
See the code below:
[...] var myService;
document.addEventListener('deviceready', function() { myService = cordova.require('com.red_folder.phonegap.plugin.backgroundservice.BackgroundService'); getStatus(); }, true); [...]