Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

All the toggles are disabled #4

Open
Mac956 opened this issue Jan 3, 2014 · 3 comments
Open

All the toggles are disabled #4

Mac956 opened this issue Jan 3, 2014 · 3 comments

Comments

@Mac956
Copy link

Mac956 commented Jan 3, 2014

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

@naazz
Copy link

naazz commented Jan 15, 2014

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

@ghost
Copy link

ghost commented Jun 12, 2014

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

@marradomenico
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants