Re: [wake-lock] Add example usage of onrelease event. (#250)

#251 updates the example and hopefully makes it easier to find and understand.

> Are there any other things we expect apps to do when lock is lost? Attempt to reacquire? That's blocked because user activation is needed. Any other possible action other than just notifying the user in UI that lock is lost?

Note that user activation is needed only when a UA sets the permission to "prompt". The Chromium implementation, for example, always grants screen wake locks regardless of whether the request was triggered by user activation or not.

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

Received on Wednesday, 5 February 2020 11:32:34 UTC