Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Still Sleeping after period of time #8

Open
LorenDorez opened this issue Aug 24, 2018 · 7 comments
Open

Still Sleeping after period of time #8

LorenDorez opened this issue Aug 24, 2018 · 7 comments

Comments

@LorenDorez
Copy link

@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
Copy link
Author

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

@LorenDorez LorenDorez changed the title 1.2.2 Activity Check Causing an issue Still Sleeping after period of time Aug 24, 2018
@EddyVerbruggen
Copy link
Member

Care to share a repo and steps to reproduce this?

@LorenDorez
Copy link
Author

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" ?

@EddyVerbruggen
Copy link
Member

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

@LorenDorez
Copy link
Author

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

@EddyVerbruggen
Copy link
Member

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).

@LorenDorez
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants