-
Notifications
You must be signed in to change notification settings - Fork 1k
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
cordova.plugins
is undefined
!
#451
Comments
Having the same issue |
1 similar comment
Having the same issue |
Hi, did you install the plugin from the git repo? because the npm version is quite outdated? |
My terminal only prints: But the plugin seems to be installed |
@Nagasakie just to confirm, do you use this plugin for android/ios? Maybe your terminal output is not complete but I see "for browser" there and this plugin is only used for native platforms, not in the browser. If you test your ionic/cordova app in the browser it is normal that |
@tobika yes, I use this plugin for android and I have the same issue. |
@Nagasakie could you please uninstall and reinstall the plugin and post the whole terminal output here? Otherwise it will be difficult to help. |
|
@Nagasakie thanks, do you use cordova 9? |
@tobika yes, i use cordova 9.0.0 (cordova-lib@9.0.1). |
having the same issue cordova backgroun modes undefined. When i install the plugin i get: |
same here... cordova plugin add https://github.com/katzer/cordova-plugin-background-mode.git Is there a fix? |
It might be because I downgraded to 9.0.0. That worked seemed to work for me. |
Worked for me too. Thanks man |
I installed the plugin through the command line, and it's visible in the plugins-list when running the cmd
cordova plugins
but in javascriptcordova.plugins
isundefined
and so is ofcourse cordova.plugin.backgroundMode! I tried checking the existence ofcordova.plugins.backgroundMode
after deviceready and manually through eval minutes after load on real device, and it's nothing there.The text was updated successfully, but these errors were encountered: