-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Compliance with Google Play's Photo and Video Permissions policy #2087
Comments
I found a library that already does this: react-native-photo-picker, and it doesn't look like it'd be very hard to implement. I'll do it myself in the coming weeks unless someone else beats me to it, as I really need this for all the apps I'm maintaining. I'd be very thankful if someone else did beat me to it though, as I'm not used to developing libraries so I'm having a hard time getting the environment to work properly. |
I actually got it done already with an as minimal change as possible. I'll post a PR asap. |
We are using this library in an App using react-native 0.73.6, and both We have now tested a version of our App after removing Interested to hear from others if they have found devices where this permission is still required. I know the readme of the project states it should be added, but might it only be required for apps with a NOTE: there is a related/duplicate issue here #2043 |
@julianD77 I think it's just Android 13+ where that permission is required. I don't remember exactly what happened and on what device/version, but it definitely doesn't work 100% without it. Either way I also think it's better to use the way Google has suggested to pick images, and it's not a very big deal to upgrade. |
Got the same problem today when pushing a new update for my app. |
Pull request created: #2093 |
I was reading through @Pauligrinder PR and the history on this permission, and testing our app and i had the same result here! Simply removing READ_MEDIA_IMAGES and the picker still worked fine (Android 14).
But I agree, long term is always best to comply with whatever Google is suggesting |
Looks like this is what happened:
This explains why we are being able to remove READ_MEDIA_IMAGES and still have the new photo picker working normally even though it is not explicitly implemented. |
@leonardorib Could you explain why we get this library working even with the removed permissions? I tested myself on an Android SDK 34 and I got the same results (library working ok). Is it because this library is using ACTION_GET_CONTENT? |
Sure! In my previous comment I'm linking the official blog posts from Google where they mention this transition to the new Photo Picker that provides more privacy for users. So if you stick to the new photo picker, don't even need to ask permissions. And as part of the transition, they state on the post on Medium:
And on android-developers.googleblog.com:
So they made the Photo Picker show up even if you are using the legacy GET_CONTENT intent with a mime type filter for image or video instead of using the actual photo picker API. And this is precisely the case for this library as you can see in this function: Lines 365 to 392 in 6ff41ff
So even though no changes were made in the library code to invoke the new Photo Picker, it is still able to do it since Google implemented the switch on their side. This is why the package is working even if you remove |
@leonardorib thank you very much for the thorough response. I saw the same in the code and I wanted to validate if this was the correct conclusion. I did more test in different devices and I haven't had any issues after removing the permissions. |
any news regarding this issue? |
Version
Tell us which versions you are using:
Platform
Tell us to which platform this issue is related
Upcoming android deadline.
There is upcoming android deadline regarding READ_MEDIA_IMAGES permission. As per new google You can only use READ_MEDIA_PERMISSION permission if your app is a gallery app, or if its core functionality is editing, managing, and maintaining photos. Otherwise, you must migrate to the Android photo picker,
or a photo picker of your choice.
Now apps that are using this for picking up profile pictures or other non-core features won't be able to use READ_MEDIA_IMAGES permission after the deadline.
Here is timeline google provided
Detail policy info here
So necessary update to package required in order to access images without READ_MEDIA_IMAGES permission.
The text was updated successfully, but these errors were encountered: