You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "AndrWeisR (via GitHub)" <gi...@apache.org> on 2023/05/26 00:55:46 UTC
[GitHub] [cordova-plugin-camera] AndrWeisR commented on issue #826: Error Code 20 on Android
AndrWeisR commented on issue #826:
URL: https://github.com/apache/cordova-plugin-camera/issues/826#issuecomment-1563674714
Same error here. Here's my code. I'm upgrading my Ionic app (where selecting a photo from the gallery previously worked) to support API 33, using Cordova 12.0.0. I upgraded the camera plugin to 6.0.0, but still get error 20.
```
const options: CameraOptions = {
mediaType: this.camera.MediaType.PICTURE,
correctOrientation: true,
targetWidth: 1024,
sourceType: this.camera.PictureSourceType.PHOTOLIBRARY,
destinationType: this.camera.DestinationType.FILE_URI
};
this.camera.getPicture(options).then((imageData) => {
....
}, (err) => {
console.log(err); <== This outputs "20".
});
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org