-
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
Fix/ios wrong permission message #30374
Fix/ios wrong permission message #30374
Conversation
return; | ||
} | ||
if (!_.isEmpty(errorMessage)) { | ||
const micPermission = Platform.select({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Platform.select
is not preferred. Please re-use iou/ReceiptSelector/CameraPermission
structure to handle platform specific permissions.
@allroundexperts Can you test the changes and provide feedback please? |
@chiragsalian Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
@allroundexperts if you are busy with more priorty task, Should I ask @chiragsalian to kick off adhoc build so i can test changes myself. |
@ishpaul777 you won't be able to test adhoc build as your udid isn't registered. |
@situchan can you please explain how can i build app on ios physical device it would be helpful for future issue, do i need some extra permissions or what? |
If you have your own apple developer account or got invited from any other team, you can point to that cert/provisioning profile, change bundle id to any random one and install the app on iPhone. Note: it's not possible to test features which require cert, i.e. push notification. |
Thanks for explaination @situchan |
Sorry guys, I was having issues with native builds till last night. I will test this today and post the results @ishpaul777 @situchan! |
Hi @ishpaul777! This does not seem to work. When I have mic disabled, I'm getting the generic Also, can you merge main? RPReplay_Final1698988388.MP4 |
@allroundexperts Can you test again please |
@allroundexperts bump! |
@allroundexperts, sorry for ping again. I just wanted to check in and see if you might have an estimated time when you can test with these cases its been on hold for a while. Thanks! |
@ishpaul777 I don't think that these test cases are possible for me to test. As soon as you go offline, we're blocking the Onfido flow. |
@allroundexperts Thanks i was unaware of this @situchan you can condsider this open for your review |
@situchan Gentle bump |
@ishpaul777 please pull main |
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid1.mp4android2.mp4Android: mWeb ChromeiOS: Nativeios1.MP4ios2.MP4iOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some NAB suggestions:
Lines 1093 to 1097 in 4f41819
USER_CAMERA_DENINED: 'Onfido.OnfidoFlowError', | |
USER_CAMERA_PERMISSION: 'Encountered an error: cameraPermission', | |
// eslint-disable-next-line max-len | |
USER_CAMERA_CONSENT_DENIED: | |
'Unexpected result Intent. It might be a result of incorrect integration, make sure you only pass Onfido intent to handleActivityResult. It might be due to unpredictable crash or error. Please report the problem to [email protected]. Intent: null \n resultCode: 0', |
remove these lines as not used anymore
Co-authored-by: Situ Chandra Shil <[email protected]>
Co-authored-by: Situ Chandra Shil <[email protected]>
Co-authored-by: Situ Chandra Shil <[email protected]>
Co-authored-by: Situ Chandra Shil <[email protected]>
I'm OOO for two months so i'm unsure if i can review this in a timely manner once it's ready for review. So, I am unassigning myself and once its ready for review please reassign to another internal Expensify engineer for review. |
oops i just realized this is ready for review. I thought it was still WIP, looking at it now 🙂 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/chiragsalian in version: 1.4.12-0 🚀
|
🚀 Deployed to staging by https://github.com/chiragsalian in version: 1.4.12-0 🚀
|
🚀 Deployed to staging by https://github.com/chiragsalian in version: 1.4.12-0 🚀
|
🚀 Deployed to production by https://github.com/Julesssss in version: 1.4.12-2 🚀
|
Details
Fixed the incorrect error message displaying "camera permission denied" when the actual issue was a denial of microphone permission. Now, the error message accurately reflects the microphone permission denial.
Fixed Issues
$ #23421
PROPOSAL: #23421 (comment)
Tests
Can be tested on ios
Offline tests
QA Steps
Can be tested on ios and android
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
VID_20231118155925.mp4
Android: mWeb Chrome
iOS: Native
282568068-a5f149f0-44c8-40cb-a69c-9ba3a3212e00.mp4
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop