I have permissions granted, and it works on the Expo client and on Android, but on iOS when published to an app the camera never launches.
PickImage = async () => {
this.setState({loadingCamera: true });
console.log("try picking");
let { status } = await Permissions.askAsync(Permissions.CAMERA);
if (status !== 'granted') {
this.setState({
errorMessage: 'Permission to access camera was denied',
});
}
let pickerResult = await ImagePicker.launchCameraAsync({
allowsEditing: false,
});
console.log(pickerResult);
if (!pickerResult.cancelled) {
this.setState({ image: pickerResult.uri, loadingCamera: false, });
} else {
this.setState({ uploading: false, loadingCamera: false, });
}
this.ManagePickedImage(pickerResult);
};
Does anyone have any idea why this might be? I’m all out of things to try.