Closed simetin closed 4 years ago
Thanks a lot for your issue, however the issue template exists for a reason. 😊
It helps us to debug the issue further and to provide a solution much faster. With important information missing, we unfortunately can't help you.
Therefore, please edit this issue accordingly or close and create a new one and make sure to provide all the required information.
I also want to make a note that there is no official version 4.2.0 release.
I've made a repo to show the issue: https://github.com/simetin/cordova-camera-plugin-issue-demo Here are the steps I did to create the demo:
Added the code provided by Ionic:
openCamera() {
const options: CameraOptions = {
quality: 100,
destinationType: this.camera.DestinationType.FILE_URI,
encodingType: this.camera.EncodingType.JPEG,
mediaType: this.camera.MediaType.PICTURE
}
this.camera.getPicture(options).then((imageData) => {
console.log(imageData);
}, (err) => {
console.log(err);
});
}
Is there anything else that you want me to provide you ?
Thanks
a) you are using an unsupported version b) this is a duplicate of https://github.com/apache/cordova-plugin-camera/issues/597 c) we are aware that the master is broken due to PR #588
Okay, thank you and sorry
Since updated to V4.2.0 yesterday, when I run the getPicture function I get the error "Illegal Argument Exception". The error is only happening on Android.
Thanks