Camera Plugin Not Opening Camera In Ionic 4
I am working on a project in Ionic 4. I would like user to upload picture by capturing from camera or uploading from library. For now I am running in development mode. The problem
Solution 1:
Try this
takePicture(sourceType: PictureSourceType) {
const options: CameraOptions = {
quality: 100,
sourceType:sourceType,
saveToPhotoAlbum: false,
correctOrientation: true
};
this.camera.getPicture(options).then(
imageData => {
///DO YOUR LOGIC
},
err => {
// Handle error
}
);
}
Post a Comment for "Camera Plugin Not Opening Camera In Ionic 4"