-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[HOLD for payment 2023-10-23] [$500] [Android] User isn't prompted for Camera permission via the native Modal #26499
Comments
Triggered auto assignment to @sakluger ( |
Bug0 Triage Checklist (Main S/O)
|
This is more of a feature improvement than a bug |
@Julesssss what if we directly request permission with native pop up on click of button, if permission "denied" or "restricted" then show native alert modal similar to flow of launching camera while adding attachements. |
@Julesssss It's not possible to deep-link directly to the Camera settings page. The best option is to open the App settings page which is what is currently happening. Also, the current implementation seems weird. I would assume that the app should try to request for the camera permission at least once (which shows a dialog to grant or deny the request), before making the user have to navigate to the device app settings. |
@Julesssss do you need me to triage this issue or anything, or are you going to mostly manage the issue and I can just handle any contributor payments that come up? |
Ah, right. We can deep link directly to the location permission so I assumed it worked for all permissions. Oh well.
100% agree with this and ishpaul777's comment. That's what we should be doing on native Android. @sakluger I'll update the description and will manage it. |
Job added to Upwork: https://www.upwork.com/jobs/~01f5f4967e2e242138 |
Current assignee @sakluger is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @ntdiary ( |
Can i pick this @Julesssss ? |
ProposalProblemUser isn't prompted for Camera permission via the native Modal Root causeN/a , new feature/improvement Changes
const askForPermissions = () => {
Camera.requestCameraPermission().then((permissionStatus) => {
setPermissionStatus(permissionStatus)
})
// optional Catch runtime errors
}; |
@ishpaul777 correct me if I'm wrong, but I think only the second part of your solution is necessary. We are already checking for permission and showing the 'Grant Permission' button, so we can immediately show the prompt. Why would we want to show the native modal if they deny the permission? ( |
that's what we do while launching camera in report. Record_2023-09-04-16-30-47.mp4
We can omit showing alert modal in this case then. |
Ahm, so that is NOT a native permission modal. Cool |
Proposal |
I still think that's not necessary in this case though. By tapping the button we can assume they intend to grant the permission. And if they then choose to deny it, we don't need to warn them. It's pretty obvious due to the illustration and 'Grant Permission' button that they won't be able to do anything until granted. |
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.84-10 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2023-10-23. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
For reference, here are some details about the assignees on this issue: As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
Can be paid out today |
This is not a regression, just a UX improvement. |
@sakluger Sorry, I accepted it. |
Thanks @zoontek! I completed your payment. |
All done, thanks everyone! |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
Actual Result:
I am deep linked directly to the top level generic app settings page, and must manually tap 'Permissions > Camera'
Workaround:
I must manually tap 'Permissions > Camera'. Some users might not know how to do this.
screen-20230901-162220.mp4
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.61-1
Reproducible in staging?: yes
Reproducible in production?: yes (once deployed)
Issue reported by: @Julesssss
Slack conversation: N/A
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: