-
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
[Android] Opening camera/gallery does not work on Android 11 #2531
Comments
I've confirmed the issue only happens on devices running Android 11. Installing the app on a device running Android 10 has no issues Why this particular issue happens is described in the details section ProposalThe imager picker library version 2 used is no longer maintained. The author suggestion for any issues occurring on v2 is to migrate to v3 Since we've already make the shift to present our own attachment options, we can easily migrate to v3 Along the way the suggestion on error handling using codes can be applied as well: https://github.com/Expensify/Expensify.cash/pull/1036/files#r550156553 DetailsThis particular issue is related to moving to Android SDK 30 1bcf23b https://developer.android.com/training/data-storage/use-cases#opt-out-in-production-app
This was initially configured when the attachment picker was included to the app: As noted this is not a permanent solution: react-native-image-picker/react-native-image-picker#1447 (comment) API 30 probably introduces updates that aren't handled in v2 of the library particularly this
react-native-image-picker/react-native-image-picker#1492 (comment)
AlternativeInstall another image picker library like: expo's Image Picker https://docs.expo.io/versions/latest/sdk/imagepicker/ The plus side for this one is that it supports The negative is installing this library would drag with it self the uni-modules - additional stuff we might never use. Support for web might be included in |
Triggered auto assignment to @sonialiap ( |
The document picker library used in the AttachmentPicker is also one version below the latest major version It can be updated as well, but the minimum supported Android API Level should also be updated to 21 (Android 5.0 December 2014) as it's a requirement for v5
Current minimum API level is 16 (Android 4.1 October 2012) My suggestion is to migrate both attachment related libraries to their latest versions in this ticket. |
Triggered auto assignment to @madmax330 ( |
Triggered auto assignment to @jboniface ( |
job posted cc @kidroca |
it should work by adding this line |
@mallenexpensify |
@kidroca yeah it looks like there was a little miscom here, matt was going to flag this for engineering while I was out but it must have slipped through the cracks (I'm back now though and will reach out) |
Triggered auto assignment to @timszot ( |
Sorry @kidroca and @jboniface , I wasn't paying close-enough attention to know I was supposed to check Upwork to hire @kidroca . :| |
no worries, I should have applied the |
I've got the job on Upwork |
Shouldn't I also be assigned to the ticket here on github? |
@kidroca yep, good point |
The PR for this issue is ready for review |
@jboniface |
@kidroca ah, sorry, I was batching these the other day and missed that you filed it. i'll add the 150 to the other issue we owe you for. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Expected Result:
Image picking should work on any native platform
Actual Result:
Launching the camera or opening the gallery does not work on Android 11 devices
Action Performed:
Workaround:
Add the attachment through "Choose Document" or add it from web or mWeb
Platform:
Where is this issue occurring?
Version Number: 1.0.28-0
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Android.Emulator.-.Samsung_Galaxy_S10_API_30_5554.2021-04-22.10-43-32.mp4
Expensify/Expensify Issue URL:
view job on upwork here
View all open jobs on Upwork
The text was updated successfully, but these errors were encountered: