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

backgroundMode is undefined #440

Open
reymonreyes opened this issue Mar 27, 2019 · 3 comments
Open

backgroundMode is undefined #440

reymonreyes opened this issue Mar 27, 2019 · 3 comments

Comments

@reymonreyes
Copy link

reymonreyes commented Mar 27, 2019

Just recently I was having errors with the plugin. Error "Uncaught TypeError: Cannot read property 'backgroundMode' of undefined" appears when the "cordova.plugins.backgroundMode.enable();" function is called. I'm not sure why this happens when my other app that uses the same code doesn't have this problem. I tried re-installing the plugin (including the android platform) but still not working. I also tried it on a new empty test project and got the same issue. Anyone had run into this one?

@f18nfz
Copy link

f18nfz commented Apr 2, 2019

I just re-installed the plugin and hit the same issue:
"Uncaught TypeError: Cannot read property 'backgroundMode' of undefined"

@reymonreyes
Copy link
Author

I think this issue is related to #441 .

@EmilAways
Copy link

What's the solution here? The plugin is visiple when CMDing cordova plugins but cordova.plugins is undefined!

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