I’m trying to build a web app using VueJs and Ionic Capacitor, I’m new to Ionic so I might be missing something obvious, the app will require the user to take a live personal picture at some point, and I’m facing a problem with the Ionic PWA Elements for the web version, it works fine for mobile however there is a gallery option(to browse and select a picture) in the web version, the documentation for Ionic PWA-elements doesn’t specify how to modify the web element to redact that option. So how to turn off gallery option in the Ionic PWA-Element?
Related Js
const takePicture = async () => {
const image = await Camera.getPhoto({
quality: 90,
allowEditing: false,
resultType: CameraResultType.Uri,
saveToGallery: false,
source: CameraSource.Camera, //This should only allow for live photos
});
imageElement.value = image.webPath;
};
Web Result: