cordova-plugin-background-mode: `cordova.plugins` is `undefined`!
I installed the plugin through the command line, and it’s visible in the plugins-list when running the cmd cordova plugins but in javascript cordova.plugins is undefined and so is ofcourse cordova.plugin.backgroundMode! I tried checking the existence of cordova.plugins.backgroundMode after deviceready and manually through eval minutes after load on real device, and it’s nothing there.
About this issue
- Original URL
- State: open
- Created 5 years ago
- Comments: 15
See if my solution helps any: https://stackoverflow.com/questions/56414678/cordova-app-that-uploads-my-location-every-minute-to-a-back-end-server-even-whe