-
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
Android - Denying permissions to use camera is not handled #2198
Comments
I've already addressed this in #2114 as it was directly related |
Tested this flow as part of the other PR. The old 'Permission denied' Dialog is displaying before the native permission dialog gets a chance to display. This is on Android 8.1. Any idea for why I'm not seeing the same flow as you? |
@Julesssss I don't know why I'm not getting that I've used both a Physical Android 8.0 device and a Emulator with Android 10.0 This is what I do:
I've searched the error and it turns out it comes from the default configuration: https://github.com/react-native-image-picker/react-native-image-picker/blob/2.3.4/docs/Reference.md BTW We can update to an up to date version now as per: https://github.com/Expensify/Expensify.cash/pull/1036/files#r550156553 and use error codes for error handling |
Whoops, didn't mean to close this! |
Triggered auto assignment to @peterdbarkerUK ( |
I reproduced the same as this: Is that the error you're referring to @kidroca? Or did something else occur in the original bug report? |
@peterdbarkerUK Prior merging #2114 (v1.0.10) pressing "Take photo" would do nothing when you had denied permissions For some reason @Julesssss sees a different message. There's a good chance it's because the image picker version is a legacy version. But it's still an improvement over pressing a button and nothing happening. Both ios and Android alert popups we updated with the above message I can open a PR to update the library and update the error handling as necessary |
Sweet, thanks for clarifying other Peter! Closing this issue out :-) |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Expected Result:
Trying to use the camera, but you have previously denied permissions the app should clearly indicate that
you need to update permissions in settings (since we're no longer allowed to ask)
Actual Result:
You try to use the camera the attachment menu just closes without explanation
Action Performed:
Workaround:
The user needs to go in Android settings, search for "permissions" or go to e.cash settings and manually set permission to "allow"
Platform:
Where is this issue occurring?
Web
iOS
[x] Android
Desktop App
Mobile Web
Version Number: 1.0.10-2 (First sawed on 1.0.6-3)
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Android_Deny_Permissions.mp4
For comparison on
![image](https://user-images.githubusercontent.com/12156624/113288774-0d713600-92f8-11eb-9a6d-e042bf5fc027.png)
iOS
this works correctly and you'd see this when you have denied permissions:The text was updated successfully, but these errors were encountered: