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

use granular permission of for media perm request #4609

Merged
merged 1 commit into from
Jun 24, 2024

Conversation

haileyok
Copy link
Contributor

Why

See https://docs.expo.dev/versions/latest/sdk/media-library/#medialibrarygetpermissionsasyncwriteonly-granularpermissions

We should be setting a granular permission of photo as the only thing we request. Otherwise, the default is to request access to all media types, which results in the weird "double prompt" we see now on Android.

We'll have to adjust this for video of course once we add that - though we should make sure to request only video when we do to prevent this double dialog again.

Test Plan

Reinstall the Android app with a build of this one. You should still get a permission request for photos but you should not get a request for audio and video.

Copy link

render bot commented Jun 23, 2024

Copy link

Old size New size Diff
6.48 MB 6.48 MB 0 B (0.00%)

@haileyok haileyok merged commit 873d91d into main Jun 24, 2024
6 checks passed
@gaearon gaearon deleted the hailey/granular-permissions-media branch June 24, 2024 18:59
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.

2 participants