cbsp icon indicating copy to clipboard operation
cbsp copied to clipboard

All the toggles are disabled

Open Mac956 opened this issue 12 years ago • 3 comments

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');

Mac956 avatar Jan 03 '14 14:01 Mac956

Ive got the same issue the code not working after this line! var myService = cordova.require('com.red_folder.phonegap.plugin.backgroundservice.BackgroundService');

naazz avatar Jan 15 '14 15:01 naazz

Hi, I was able to enable the buttons but I am getting alert('Invalid action'); on the UI.

ghost avatar Jun 12 '14 16:06 ghost

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); [...]

marradomenico avatar Oct 04 '14 21:10 marradomenico