Trigger QR Scan for loading a url
Deny permission twice to get "Deny & Don't ask again"
Trigger QR scan again
Message explaining why the permission is needed
Screen flashes, nothing happens, seems broken
Note: this also happens when you go to pair from sync settings
From @betsymi: show a notification:

For Android versions that don't allow linking into the App settings what are we doing here? SUMO article?
Here are the strings since you can't grab them from the image above.
Camera access needed. Go to Android settings, tap permissions, and tap allow.
DISMISS GO TO SETTINGS
Linking to SUMO is fine for those other Android versions, though I wasn't able to find an existing article that explains how to do this. We may need a new article.
@ekager if you have a recommendation here for what UI elements to use, and how to handle the low-API devices, for whoever picks this up after pre-landing strings.
Yep this looks like a dialog to me based on the two button configuration/longer message.
It does sound like we need a new SUMO article similar to how what we have for our Default Browser setting
Requested a new Sumo page from Joni. She's getting back to me tomorrow with the draft.
Here's the URL you can use in the UI: https://support.mozilla.org/1/mobile/%VERSION%/%OS%/%LOCALE%/qr-camera-access. It will redirect to a SUMO article (currently in progress).
We have a draft here.
Please comment with any feedback. I'm on a Pixel with Android 10 and I'm wondering if the steps are the same as other versions.
Article is now live (but we can make additional changes if needed): https://support.mozilla.org/kb/camera-permissions
Thanks for the feedback, Elise and Betsy.
Thank you so much @jonichan! 馃帀
Takled to Vesta, and this is something that she'd like to have uplifted to 81. Let's see where we're at with it when we regroup next week.
@vesta0 this should be ready to test in Nightly on Saturday at the latest (but probably Friday), or in Firefox Beta early next week.
This has landed in Fenix 81.1.1-beta3.
Found an issue while testing it:
When permission is denied and the prompt appears, go to Settings to change the Camera permission.
Switch Camera permission on.
Return to Fenix and tap the Search Scan again.
Expected: The notification is not displayed, the QR code scan is launched.
Actual result: The notification still appears after allowing Camera permission.
Can't verify it for the QR pairing feature due to this crash: https://github.com/mozilla-mobile/fenix/issues/14973
Now 8.1.1.1-beta.4 crashes if you tap the Go to Settings button when trying to pair using the QR code. See https://github.com/mozilla-mobile/fenix/issues/15079
Since the remaining bugs have been logged on separate issues: #https://github.com/mozilla-mobile/fenix/issues/14998 & #15079, I'll close this ticket.
Our contacts at Google suggested that we need to reserve sending a user to the app settings until the app has detected that the 'Always deny' option has been selected.
They followed up with these guidelines on the permission request flow they require for featured apps in the Play Store:
Permission Request Flow (non-critical permissions)
(When selecting a feature that requires a non-critical permission)
I'll file a new bug with these requirements ^
Most helpful comment
Here's the URL you can use in the UI: https://support.mozilla.org/1/mobile/%VERSION%/%OS%/%LOCALE%/qr-camera-access. It will redirect to a SUMO article (currently in progress).