Closed leandroseja closed 4 years ago
Did you get this sorted?
The camera doesn't work on iOS simulators
Hello I have the same problem, how did you solve it?
Yes – was some time ago so cant remember how – I think I updated the cordova version
From: Edinson Carranza Saldaña notifications@github.com Reply to: apache/cordova-plugin-camera reply@reply.github.com Date: Sunday, 25 October 2020 at 23:08 To: apache/cordova-plugin-camera cordova-plugin-camera@noreply.github.com Cc: Adriaan Brink adriaan@gcon.li, Comment comment@noreply.github.com Subject: Re: [apache/cordova-plugin-camera] Camera does not open iOS (#532)
Hello I have the same problem, how did you solve it?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.
Olá estou com o mesmo problema, como você o resolveu?
Hello I have the same problem, how did you solve it?
Hello Friend. I found out that using the XCode Simulator, taking pictures doesn't work. When I tested it on my cell phone it worked. See if that's not it.
Bug Report
Camera.getPicture: source type 1 not available - iOS
Problem
Hello friends, this is the first time. Sorry if I did something wrong. I am using ionic 3 (--type = ionic-angular)
My camera was working and I updated some things in my app. That's when the camera stopped working, only ios, in the latest updates. I tried to go back to 4.0.3 and it didn't work out. The photo gallery is working !!! Only the camera to take a picture that has stopped working. Returns I tried on xcode 11.1 and it didn't work either. Error Print: https://prnt.sc/q2jce0 and https://prnt.sc/q2jc8h
I tried installing with the commands below I do not know what else to do. Could you help me with that?
@ionic-native/camera": "^4.20.0" cordova-plugin-camera: 4.0.3
ionic cordova plugin add cordova-plugin-camera npm install --save @ionic-native/camera@4
ionic cordova plugin add https://github.com/spoonconsulting/cordova-plugin-camera.git npm install --save @ionic-native/camera@4
ionic cordova plugin add cordova-plugin-camera npm install --save @ionic-native/camera@
What is expected to happen?
Open iOS Camera
What does actually happen?
Does not open and return error message Camera.getPicture: source type 1 not available.
Information
Command or Code
const options: CameraOptions = { quality: 60, destinationType: this.camera.DestinationType.DATA_URL, encodingType: this.camera.EncodingType.JPEG, mediaType: this.camera.MediaType.PICTURE, sourceType : this.camera.PictureSourceType.CAMERA, // I tested removing this line targetWidth: 500, saveToPhotoAlbum: false, correctOrientation:true }
Environment, Platform, Device
Version information
XCODE 10.1
Ionic:
Ionic CLI : 5.4.9 (/usr/local/lib/node_modules/ionic) Ionic Framework : ionic-angular 3.9.5 @ionic/app-scripts : 3.2.2
Cordova:
Cordova CLI : 9.0.0 (cordova-lib@9.0.1) Cordova Platforms : ios 5.1.0 Cordova Plugins :
cordova-plugin-camera 4.1.1-dev "Camera" cordova-plugin-device 2.0.2 "Device" cordova-plugin-dialogs 2.0.2 "Notification" cordova-plugin-ionic-keyboard 2.2.0 "cordova-plugin-ionic-keyboard" cordova-plugin-ionic-webview 4.1.3 "cordova-plugin-ionic-webview" cordova-plugin-splashscreen 5.0.2 "Splashscreen" cordova-plugin-statusbar 2.4.2 "StatusBar" cordova-plugin-whitelist 1.3.3 "Whitelist" cordova.plugins.diagnostic 5.0.1 "Diagnostic"
Utility:
cordova-res : not installed native-run : not installed
System:
NodeJS : v11.12.0 (/usr/local/Cellar/node/11.12.0/bin/node) npm : 4.6.1 OS : macOS High Sierra
Checklist