- From: Marcos Cáceres via GitHub <sysbot+gh@w3.org>
- Date: Wed, 16 Jun 2021 00:59:37 +0000
- To: public-device-apis-log@w3.org
> If I open my wallet app or boarding pass using a native app, my screen brightness goes to maximum but I'm not asked to consent. I also agree that this is ultimately where we want to end up. > If we tie the brightness request to getUserMedia, that is not optimal for my use case. Some vendors (Firefox, Safari desktop) require you to pre-grant camera access before entering fullscreen in our biometric checking case, because you can't prompt for permission while in fullscreen (it kicks you out.) Ok, but we can argue that's a browser bug, not a limitation of the getUserMedia() API (e.g., it works in Chrome) - but let's put that aside. > Btw - fullscreen in this use case is needed to maximise illumination of the user. Understood. Entering fullscreen doesn't prompt tho, right? I don't think it even requires user interaction, so we are good there. >So such linking behaviour would actually worsen the user experience because the host page would be max brightness - not necessary until the user starts the actual scanning experience. Not sure I follow. Can you help me understand this part a bit more. For this hypothetical scenario, my mental model is: 1. user goes to example.com 2. User selects "Sign in using face+light magic!" 3. optionally, request camera access via getUserMedia() now. 4. Website calls a hypothetical `.requestFullscreen({ brightness: "🔆" });` 5. optionally, request camera access via getUserMedia() now. 6. Device enters fullscreen, the browser pumps up the brightness to full. 7. Authentication happens (or not). 8. `.exitFullscreen()` gets called. 9. ... handle success/failure of login.... -- GitHub Notification of comment by marcoscaceres Please view or discuss this issue at https://github.com/w3c/screen-wake-lock/issues/129#issuecomment-861930300 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 16 June 2021 00:59:54 UTC