EddyVerbruggen / Insomnia-PhoneGap-Plugin

:sleepy: Prevent the screen of the mobile device from falling asleep

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wake up from turned off screen

mjoakim opened this issue · comments

Hi Eddy,

Is it in any way possible to wake up a device, when the screen has been turned off (the app is still running - or has it been paused by the screen turn-off thing?) ?

Edit: In my case, I'm targeting Android 4.2.2, if that's of interest.

Edit2: Just a second, I forgot about the KeepRunning config.xml flag. I'll try that first..

Hi,

That's a good question!

This plugin is meant for not allowing the screen to dim so it keeps running. What you're asking is an entirely different case and is indeed not supported by this plugin. Once the device was manually locked, your app is paused, even with this plugin. You'll need to use a background mode plugin for that I guess.