Steps :
- Click on camera button in app then camera open
- take picture front/back picture dsiplay
- selection option cancel or ok then I have click ok
- app restart (means app open from start page with splase screen)
Notes :
- My android version 11 [I am testing this code in android 11(MI device) and android 10(Motorola) devices]
- All the permissions of camera access is 100% set.
- The issue doesn't come in Android 10.
- The issues comes in just Android 11.
This is my Code snippet
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 ===> ",imageData);
// imageData is either a base64 encoded string or a file URI
// If it's base64 (DATA_URL):
let base64Image = 'data:image/jpeg;base64,' + imageData;
}, (err) => {
console.log("errr",err);
this.utilServices.openForSuccessError({ value: false, message1: err});
// Handle error
});