insomnia icon indicating copy to clipboard operation
insomnia copied to clipboard

Still Sleeping after period of time

Open LorenDorez opened this issue 7 years ago • 7 comments

@EddyVerbruggen

I know why you added the code to check for foreground activity to keepawake or sleep when the app is not active but for me this defeats the whole purpose of the plugin. Can we either revert back to the older version or add a flag to disable this activity check?

LorenDorez avatar Aug 24 '18 17:08 LorenDorez

Looks like im still running the older version and getting reports that after a while the phone is still sleeping.

LorenDorez avatar Aug 24 '18 17:08 LorenDorez

Care to share a repo and steps to reproduce this?

EddyVerbruggen avatar Aug 24 '18 17:08 EddyVerbruggen

working on that. Just getting enough reports if it that hard to say its just 1 user manually turning off the screen. Do you know if there is anything on Android that would override the flag "FLAG_KEEP_SCREEN_ON" ?

LorenDorez avatar Aug 24 '18 17:08 LorenDorez

No. I'm also interested to learn if you think this is specific to a version.

EddyVerbruggen avatar Aug 24 '18 17:08 EddyVerbruggen

Im running tests right now but the users say that it happens about 30+mins or so of inactivity and they are also switching between apps constantly som im going to run through a battery of tests and let you know what i find if anything

LorenDorez avatar Aug 24 '18 17:08 LorenDorez

OK. The expected behaviour is that if your app is in the foreground and you use keepAwake, then the screen should not dim (and eventually lock the phone).

EddyVerbruggen avatar Aug 24 '18 17:08 EddyVerbruggen

thats what im am trying to confirm if it slept on my app or another one.

LorenDorez avatar Aug 24 '18 18:08 LorenDorez