Expo ImagePicker fails to launch. Call to function 'ExponentImagePicker.launchCameraAsync' has been rejected.
Problem
Summary My users on Android arrive at a point where they can no longer launch the camera. User has given camera and media library permissions. User was able to open camera. User is no longer able to open Camera or Media Library. It seems to be related to the expo task manager too. I've found that the issue appears when: - Given you are tracking location via a task in the task manager - When you close the app - When you reopen the app - When you try to pick an image - Then the image picker will not open I've found that the issue does not appear when location tracking is not active when the app was last closed. Check the linked repo with reproducible example. [code block] Resulting error logs (source Sentry): [code block] Closing and reopening the app does not resolve the issue. Once a user has met this error, only reinstalling the app works. What platform(s) does this occur on? Android Environment expo-env-info 1.0.5 environment info: System: OS: macOS 12.0.1 Shell: 3.2.57 - /bin/bash Binaries: Node: 16.12.0 - ~/.nvm/versions/node/v16.12.0/bin/node Yarn: 1.22.17 - /usr/local/bin/yarn npm: 8.1.0 - ~/.nvm/versions/node/v16.12.0/bin/npm Watchman: 2021.06.07.00 - /usr/local/bin/watchman Managers: CocoaPods: 1.10.1 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: DriverKit 21.4, iOS 15.5, macOS 12.3, tvOS 15.4, watchOS 8.5 IDEs: Android Studio: 4.1 AI-201.8743.12.41.7199119 Xcode
Error Output
error logs (source Sentry):
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Solution: Expo ImagePicker fails to launch. Call to function 'ExponentImagePicker.launchCameraAsync' has been rejected.
Some news? I have the same problem and the same steps to replicate it.
Trust Score
5 verifications
- 1
I have the same problem and the same steps to replicate it.
I have the same problem and the same steps to replicate it.
Validation
Resolved in expo/expo GitHub issue #19512. Community reactions: 9 upvotes.
Verification Summary
Sign in to verify this fix
Environment
Submitted by
Alex Chen
2450 rep