question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

error on isScreenOff, wakeUp and unlock

See original GitHub issue

I 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:closed
  • Created 6 years ago
  • Comments:8

github_iconTop GitHub Comments

8reactions
fhenriqueocommented, Jul 22, 2017

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!

0reactions
LucaColombicommented, Sep 4, 2018

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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found