Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check and request for read permission on Android. #114

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

joshuapinter
Copy link

This is required on Android 10+.

Otherwise, no images or videos will be shown.

Also confirmed to be working on Android 5, which doesn't show the request if the permission is already added to the app's AndroidManifest file.

The check and request method was pulled directly from cameraroll's README, with the exception of just checking the READ permission instead of the WRITE permission:

https://github.com/react-native-cameraroll/react-native-cameraroll#permissions.

On First Launch

Permissions

After Deny and Relaunch

Permissions denied the first time

After Allow

AFTER Android 10

This is required on Android 10+.

Otherwise, no images or videos will be shown.

Also confirmed to be working on Android 5, which doesn't show the request if the permission is already added to the app's AndroidManifest file.

The check and request method was pulled directly from cameraroll's README, with the exception of just checking the READ permission instead of the WRITE permission:

https://github.com/react-native-cameraroll/react-native-cameraroll#permissions.
@joshuapinter joshuapinter changed the title Check and requets for read permission on Android. Check and request for read permission on Android. Dec 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant