Hi,
I have a react native app, I use this java code to check the camera permission :
On Android 6.0, when the camera permission is off, the native permission popup shows thanks to the requestPermissions function.
However, it doesn't show on Android 7.0.
I checked the result of :
It's false on Android 6.0 and 7.0
Thanks for your answer,
I have a react native app, I use this java code to check the camera permission :
Java:
int permission = PermissionChecker.checkSelfPermission(getReactApplicationContext(), Manifest.permission.CAMERA);
if (permission != PackageManager.PERMISSION_GRANTED) {
ActivityCompat.requestPermissions(activity, new String[]{Manifest.permission.CAMERA}, PERMISSION_REQUEST_CAMERA);
}
promise.resolve(permission);
On Android 6.0, when the camera permission is off, the native permission popup shows thanks to the requestPermissions function.
However, it doesn't show on Android 7.0.
I checked the result of :
Java:
ActivityCompat.shouldShowRequestPermissionRationale(activity, Manifest.permission.CAMERA)
Thanks for your answer,
Last edited by a moderator: