I have an ionic 3 app that is using the ionic native camera plugin. This plugin was working fine, however, it recently stopped working and now just returns “20” as an error where I call getPicture with camera options like
const camOptions: CameraOptions = {
quality: 100,
destinationType: this.camera.DestinationType.NATIVE_URI,
encodingType: this.camera.EncodingType.JPEG,
mediaType: this.camera.MediaType.PICTURE,
correctOrientation: true
}
this.camera.getPicture(camOptions).then(imageData => {
console.log(imageData)
}, err => {
console.log(err)
})
I can create a simple tabs app and use this plugin and everything works fine. Is it maybe a plugin conflict in my project? Does anyone have any ideas? What information can I provide to help?