ImagePicker.launchCameraAsync requires Permissions.CAMERA_ROLL?

Is there a reason why ImagePicker.launchCameraAsync requires both Permissions.CAMERA and Permissions.CAMERA_ROLL?

It means checking permissions for access to the camera and to the image library. It also means asking the user to enable access to the image library when only access to the camera is required. This may be confusing to the user and to the app developer in trying to justify access to the image library when only the camera is required.

Since Permissions.CAMERA_ROLL is not required for BarCodeScanner, why is it required for `ImagePicker?

Hey @visto9259,

On Android, the photos you take via the Camera will be saved to device’s Gallery which is why the permission is needed.

Cheers,
Adam

But on IOS, you realize that the user will be asked for two permissions where access to the Image library is not directly related to taking picture.

Then would it be possible to have a different behavior for IOS?

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.