Hi Felgo Team,
I’m experiencing an issue with the nativeUtils.displayCameraPicker which crashes the app on iOS devices when used for the first time (on version 2.13.2).
- Camera opens
- Permission requested (and approved)
- Photo Taken
- Photo Selected
- Crash (Presuming no access to camera reel given.
When I open the imagePicker, I am prompted for Access permission. When approved, the camera then works. The crash is repeatable if you uninstall the app, re-install and follow the steps again
Is there any way to have the camera prompt for the PhotoLibrary permission as well before the photo is taken?
Connections {
target: nativeUtils
onCameraPickerFinished: {
if (accepted && path) {
console.log(path)
}
}
onImagePickerFinished: {
if (accepted && path) {
console.log(path)
}
}
onAlertSheetFinished: {
if (index === 0) {
nativeUtils.displayCameraPicker("Take a Photo")
} else if (index === 1) {
nativeUtils.displayImagePicker("Select a Photo")
}
}
}