fix(android): prevent screen from turning off during active video calls in example application#1057
fix(android): prevent screen from turning off during active video calls in example application#1057mechtech-mind wants to merge 8 commits into
Conversation
mechtech-mind
left a comment
There was a problem hiding this comment.
yeah looks ok
hiroshihorie
left a comment
There was a problem hiding this comment.
Left a few small notes. The keep-awake idea makes sense; I think this just needs a little tightening before merge.
|
Hi @hiroshihorie, I have updated the PR as per the changes you suggested: wrapped the in-call flag calls with Android platform checks Thanks again for the review. |
hiroshihorie
left a comment
There was a problem hiding this comment.
Thanks for the updates. The lockfile and lock screen parts look fixed. I left two small platform notes.
Refactor platform check for enabling and disabling in-call flags also removed dart.io import
|
@hiroshihorie Thanks again for the reviews. I have updated the file as per the requirements. I will make sure to check thoroughly before creating the PR. |
This PR fixes an issue in the Android example application where the device screen turns off automatically during an active video call due to screen timeout.
Problem
During an ongoing LiveKit call on Android, the screen is not kept awake, which leads to:
Solution
This PR adds native Android window flag handling in MainActivity to ensure the screen remains active while a call is in progress:
The flags are: