-
Notifications
You must be signed in to change notification settings - Fork 3k
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-12-21][$1000] IOS - Permission popup indicates wrong message #23421
Comments
Triggered auto assignment to @zanyrenney ( |
Bug0 Triage Checklist (Main S/O)
|
Here's the video for detailed steps for reproduction: WhatsApp.Video.2023-07-24.at.3.26.51.PM.mp4 |
Job added to Upwork: https://www.upwork.com/jobs/~01479aaf3e91037a82 |
Current assignee @zanyrenney is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @0xmiroslav ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.IOS - Permission popup indicates the wrong message What is the root cause of that problem?In App/src/components/Onfido/index.native.js Lines 46 to 49 in 8b23658
When the permission got failed for the microphone, this code is triggered, which pops up the alert modal, which has the message as the following. Lines 928 to 929 in 74ae95c
What changes do you think we should make in order to solve the problem?Change the message to cameraPermissionsNotGranted: 'Camera / Microphone permissions not granted',
cameraRequestMessage: 'You have not granted us either camera or microphone access. We need access to both for complete verification.', And similar message for other languages Alternative SolutionsMay want to shift towards OnfidoCaptureType.MOTION instead of VIDEO. (Maybe it's in the territory of feature request). |
ProposalProblemIOS - Permission popup indicates wrong message when asking for permission for microphone, instead of requesting for microphone it asks for camera permission Root causeHere we are checking for camera permission and based on that we are showing the popup message, microphone permission is not handled so even if errorMessage is for microphone permission it will show the popup message for camera permission because of this condition if (_.contains([CONST.ONFIDO.ERROR.USER_CAMERA_PERMISSION, CONST.ONFIDO.ERROR.USER_CAMERA_DENINED, CONST.ONFIDO.ERROR.USER_CAMERA_CONSENT_DENIED], errorMessage)) {
Alert.alert(
...... Changes
ref - https://github.com/onfido/onfido-ios-sdk/blob/master/README.md#response-handler-errors
// Replace the previous condition that checks for camera permission with separate checks for camera and microphone permissions.
if (_.contains([CONST.USER_CAMERA_PERMISSION, CONST.USER_CAMERA_DENIED], errorMessage)) {
// Alert for camera permission
} else if (_.contains([CONST.USER_MICROPHONE_PERMISSION, CONST.USER_MICROPHONE_DENIED], errorMessage)) {
// Alert with desired translated message for microphone permission (Add the phrase keys to the translation file)
}
AlternativelyIf we can check whether we have microphone and camera permission programatically. We can show the popup message for microphone/camera permission based on that. With my research I found that we can check for permissions in android. |
@0xmiroslav any thoughts on these proposals, please? |
bump @0xmiroslav ? please can you take a look! |
@zanyrenney I think we should confirm copy for microphone permission denied message. Both English and Spanish. Should we add |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Hey @0xmiroslav - I agree with Spanish, but why can't we use the same copy as the screenshot provided here? Let me know your thoughts! |
Heading ooo we're still debating the copy here and if we need to add the waiting for copy label / get this translated in spanish! thanks in advance for the help moving this along BZ team! |
Yup. that sounds good to me.
That code block looks good to me. |
Yes, that's looks good to me @ishpaul777 |
Hmm copy mostly LGTM. This part reads weird to me,
Shouldn't it instead be
or
or something similar. |
Let's leave the copy as-is, I think it reads well-enough. @ishpaul777 please add a period to the end of each of the sentences, thx. |
Cool works for me, i think spanish copy is still needed. I'll ask on slack to translate these,
Asked here |
Spanish translations:
|
From the PR, @ishpaul777 will be out a couple days
|
@mallenexpensify for double confirmation of above item in author checklist do we need to capitalize each word in header title as in approved copy? |
Good catch @ishpaul777 , I believe we recently made a change for capitalization . Please have the titles be
|
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a regression has occurred and you are the assigned CM follow the instructions here. If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future. |
PR not merged yet. False alarm |
This issue has not been updated in over 15 days. @chiragsalian, @mallenexpensify, @zanyrenney, @ishpaul777, @situchan eroding to Monthly issue. P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do! |
PR deployed yesterday, looks like automation failed. @mallenexpensify can you please switch label to weekly again |
PR deployed to production 4 days ago, updated title to reflect payment is due the 21st. Updated to Weekly too. |
BZ Checklist: |
Reporter: @DinalJivani paid $250 via Upwork Above is a lil wonky, but, once the $500 refund from @ishpaul777 is confirmed we'll be all set. More context from #23421 (comment) to #23421 (comment) @situchan , can you please accept the job and reply here once you have? |
Accepted thanks |
Hii @mallenexpensify, can you please pay @allroundexperts 500$ for their help in testing i will refund 500$ if you have paid to me already |
@mallenexpensify please check the compensation discussion from here to here |
updated payment post above |
Refunded, @mallenexpensify can you please check and confirm.. |
Thanks @ishpaul777 , confirming. I'm going to agree with you that we don't need a regression test @situchan cuz someone would have to manually go in and change the code from Mic > Camera which I can't see that ever happening. Payment breakdown above is updated. |
$500 payment to @allroundexperts based on this comment. |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Action Performed:
Go to phone settings Turn off Microphone permission.
Expected Result:
It should show Alert for Microphone permission.
Actual Result:
t shows Camera permission alert instead of microphone permission
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.42-26
Reproducible in staging?: n/a
Reproducible in production?: n/a
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
RPReplay_Final1689943670.mp4
Expensify/Expensify Issue URL:
Issue reported by: @DinalJivani
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1689948082634299
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: