Re: [wake-lock] WakeLock and Page Life Cycle (#139)

While implementing against the newest API, noticed that in order to maintain 'screen' wake lock across page visibility changes, wake lock must be reacquired every time the document becomes visible during 'visibilitychange' events. I think it's at least worth calling out that anyone who wants to use 'screen' wake lock will likely have to do the same thing. It isn't a lot of extra code or state to manage, but might be worth putting this into the API if it is common enough.

-- 
GitHub Notification of comment by cterefinko
Please view or discuss this issue at https://github.com/w3c/wake-lock/issues/139#issuecomment-517782723 using your GitHub account

Received on Friday, 2 August 2019 17:26:35 UTC