W3C home > Mailing lists > Public > public-device-apis-log@w3.org > August 2019

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

From: Chris Terefinko via GitHub <sysbot+gh@w3.org>
Date: Fri, 02 Aug 2019 17:26:33 +0000
To: public-device-apis-log@w3.org
Message-ID: <issue_comment.created-517782723-1564766792-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:34:28 UTC