bug: [iOS] Capacitor Camera API showing blank page (or pop-up) when it should open the photo gallery (photo-picker.viewservice was interrupted) #3734
Unanswered
marcelo-ansaldi-baltazar
asked this question in
Q&A
Replies: 1 comment 8 replies
-
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Bug Report
Capacitor Version
Platform(s)
iOS
Current Behavior
Ionic 4 + Angular 9 + Capacitor.
I implemented the Capacitor Camera API function getPhoto() like this:
This works perfect in android and chrome (using ionic serve).
But in iOS, when i run my app in an xcode simuator, the following happens:
For the camera option (CameraSource.Camera), the simulator throws an alert that says that iOS simulators dont have a camera (i assume this is the outcome i should expect).
For the gallery option (CameraSource.Photos), i get a white screen (or pop-up) in which i can't select any photo, and i get the following error in the xcode terminal:
Expected Behavior
The simulator should show the gallery when the (CameraSource.Photos), option is selected.
Code Reproduction
https://github.com/marcelo-ansaldi-baltazar/issueCapacitatorCameraApi
Other Technical Details
npm --version
output: 6.13.8node --version
output: 12.19.0pod --version
output (iOS issues only): 1.10.0Additional Context
Forgot to mention that the Capacitor documentation includes this:
But i think i have the right thing by default (meaning didn't change anything myself)

Beta Was this translation helpful? Give feedback.
All reactions