fenix icon indicating copy to clipboard operation
fenix copied to clipboard

[Bug] Notification for QR scan/FxA pairing failures if camera permission denied

Open liuche opened this issue 6 years ago • 15 comments

Steps to reproduce

Trigger QR Scan for loading a url Deny permission twice to get "Deny & Don't ask again" Trigger QR scan again

Expected behavior

Message explaining why the permission is needed

Actual behavior

Screen flashes, nothing happens, seems broken

Note: this also happens when you go to pair from sync settings

UX

From @betsymi: show a notification: image

┆Issue is synchronized with this Jira Task

liuche avatar Aug 26 '20 19:08 liuche

For Android versions that don't allow linking into the App settings what are we doing here? SUMO article?

kbrosnan avatar Aug 26 '20 19:08 kbrosnan

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.

betsymi avatar Aug 26 '20 19:08 betsymi

@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.

liuche avatar Aug 26 '20 20:08 liuche

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

ekager avatar Aug 26 '20 20:08 ekager

Requested a new Sumo page from Joni. She's getting back to me tomorrow with the draft.

eliserichards avatar Aug 31 '20 18:08 eliserichards

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).

jonichan avatar Aug 31 '20 18:08 jonichan

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.

jonichan avatar Sep 01 '20 00:09 jonichan

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.

jonichan avatar Sep 01 '20 22:09 jonichan

Thank you so much @jonichan! 🎉

eliserichards avatar Sep 01 '20 22:09 eliserichards

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.

liuche avatar Sep 03 '20 02:09 liuche

@vesta0 this should be ready to test in Nightly on Saturday at the latest (but probably Friday), or in Firefox Beta early next week.

liuche avatar Sep 11 '20 04:09 liuche

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

sv-ohorvath avatar Sep 11 '20 08:09 sv-ohorvath

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.

sv-ohorvath avatar Sep 14 '20 13:09 sv-ohorvath

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)

  • Inform the user on what the following permission will be used for
  • Tigger the permission request
  • (If Denied) Inform user again
  • Trigger permission request
  • (If set to Don’t Ask Again) Inform the user that they can activate the permission in the app settings
  • Remind users to allow permission in the app settings any time a feature requiring the permission is selected you can also share this link with them http://stackoverflow.com/questions/30719047/android-m-check-runtime-permission-how-to-determine-if-the-user-checked-nev

lwa-moz avatar Oct 26 '20 18:10 lwa-moz

I'll file a new bug with these requirements ^

eliserichards avatar Oct 26 '20 20:10 eliserichards