Closed louisaw123 closed 7 months ago
Based on my reading of this doc, it sounds like wakelock might not work without also implementing background processing... https://developer.android.com/training/scheduling/wakelock
As a short term fix, we should probably consider FLAG_KEEP_SCREEN_ON instead
Found my tablet at home like this too.
Seems like process can somehow go to background even with screen on?
I thought not to put in FLAG_KEEP_SCREEN_ON because I was worried about battery usage, but given that the wakelock will drain the battery anyway, might as well
Fixed with #268
Tested and passed👍
Describe the bug The current cold chain app 0.5.5 has a WAKE_LOCK feature which is meant to keep cold chain app screen on.
Checked the tablet today - screen was off and when turning the screen on, it came up with this:
To Reproduce dont know
Expected behavior Screen is meant to be on always
Smartphone (please complete the following information): cold chain app 0.5.5 tablet samsung
Additional context Checked MDM and screen timeout was set on 30 seconds. Have changed this to always be on - has not been long enough to confirm it will still keep on