This is a big issue and i am unable stuck
I deleted the android platform and reinstalled it -- didn't work
when do i get the error?
its a button call and behind the call i call this lifted from the ionicframework site:
import { Camera, CameraOptions } from '@ionic-native/camera'
...
launchCamera() {
const options: CameraOptions = {
quality: 100,
destinationType: this.camera.DestinationType.DATA_URL,
encodingType: this.camera.EncodingType.JPEG,
mediaType: this.camera.MediaType.PICTURE
}
this.camera.getPicture(options).then((imageData) => {
// imageData is either a base64 encoded string or a file URI
// If it's base64:
let base64Image = 'data:image/jpeg;base64,' + imageData;
}, (err) => {
// Handle error
});
}
Now i cant event reinstall the Cordova Camera plugin. i am following what we have in the following post
i keep getting this error
"Error: Cannot find plugin.xml for plugin "cordova-plugin-camera". Please try adding it again."
I dont know what is this plugin.xml and what to do with it when i find it
So stuck.. will appreciate all help i can get