Urgent.News

What's breaking now, across hundreds of outlets.

Tech

Photo and Video Permissions Rejection on Google Play: Fix It

Your app only lets people pick a profile photo, yet Google Play rejects it: "Permission use is not directly related to your app's core purpose." The review points at READ_MEDIA_IMAGES or READ_MEDIA_VIDEO, two permissions you may not even remember adding. This rejection is common on first releases and closed testing builds, and it often comes from a library rather than your own code. Here is how…

Permission requests for media files like pictures and videos on Google Play can lead to rejection if they don't align with an app's core purpose. This rejection is often due to permissions such as READ_MEDIA_IMAGES or READ_MEDIA_VIDEO being included in your app. These permissions may be added by libraries rather than your own code, and their presence can cause the app to be rejected.

To resolve this issue, first determine whether it is necessary for your app to access all of the user's photos or videos to perform its main function. If your app only needs to select one photo for an avatar, receipt, post, or note, using the Android photo picker is recommended. This picker removes the need for broad media access permissions.

If your app's primary function requires access to the entire photo library, you can keep the permissions and declare them in the Play Console, explaining why the photo picker is not sufficient. If your app doesn't need access to all photos and videos, you should remove the permissions instead of arguing in the declaration. This can be done by using the photo picker provided by the system or checking the documentation of your chosen framework for photo picker support.

If the rejection persists, a library might still be adding the permission, and you can remove it by adding specific lines to your manifest file. Lastly, remember to update the photo and video permissions declaration in Play Console and release the build to every active track.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

More from Friday 27 November →