error on isScreenOff, wakeUp and unlock
See original GitHub issueI used in Ionic 3.5, returned this errors.
Native: tried calling BackgroundMode.isScreenOff, but the BackgroundMode plugin is not installed.
BackgroundMode plugin: 'ionic cordova plugin add cordova-plugin-background-mode';
Native: tried calling BackgroundMode.wakeUp, but the BackgroundMode plugin is not installed.
BackgroundMode plugin: 'ionic cordova plugin add cordova-plugin-background-mode';
Native: tried calling BackgroundMode.unlock, but the BackgroundMode plugin is not installed.
BackgroundMode plugin: 'ionic cordova plugin add cordova-plugin-background-mode';
Can help me?
Issue Analytics
- State:
- Created 6 years ago
- Comments:8
Top Results From Across the Web
how to fix this.backgroundMode.unlock() when not working
i using ionic4. i import ionic cordova plugin add cordova-plugin-background-mode npm install @ionic-native/background-mode. in my project.
Read more >cordova-plugin-background-mode - npm package - Snyk
A wake-up turns on the screen while unlocking moves the app to foreground even the device is locked. // Turn screen on cordova.plugins.backgroundMode.wakeUp(); ......
Read more >Background Mode - Ionic Native
The method works async instead of isActive() or isEnabled(). Returns: Promise<boolean>. wakeUp(). Platforms:Android. Turn screen on. unlock().
Read more >[APP][2.2+][05 Oct. - V2.4] BetterBatteryStats - XDA Forums
i am facing extreme battery drain, about 10-15% per hour. after checking with bbs, I found that USB_notify and DWC3-otg are the main ......
Read more >A. Troubleshooting - Sleep as Android - Google Sites
Swiss knife alarm clock for Android, sleep tracking, smart wake up, ... please send us a debug report (menu → report a bug)...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Solved! I ended up installing Git and running the path through Git CMD:
cordova plugin add https://github.com/katzer/cordova-plugin-background-mode.git
Thanks a lot for the help!Hello,
I had the same issue, tried to solve with
cordova plugin add https://github.com/katzer/cordova-plugin-background-mode.git
but after this I had another problem:
android-sdk version check failed
Is there some android version requirement?