Re: [screen-wake-lock] editorial: Simplify the "obtain permission" algorithm. (#303)

> On future launches, the user expects to be able to load the app, and then immediately start scanning tags without having to do some user interaction with their fingers.
> For that to be possible, I guess we need to return "prompt" instead of denied... Otherwise sites will try to prompt again, no? Maybe they should, not sure

If I understood what you said correctly, your description still matches the algorithm outlined above.

My understanding is that the situation is the same if the user was never asked before as well as if the user did not explicitly granted or denied permission -- in both cases the "onboarding screen" and user activation would be required. If the user's been asked before and explicitly set a permission, then this algorithm would return either "granted" or "denied" anyway.


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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 10 February 2021 12:20:15 UTC