GetStream / stream-chat-android

:speech_balloon: Android Chat SDK ➜ Stream Chat API. UI component libraries for chat apps. Kotlin & Jetpack Compose messaging SDK for Android chat
https://getstream.io/chat/sdk/android/
Other
1.39k stars 260 forks source link

Google Play's Photo and Video Permissions #5278

Open Nyan274 opened 1 month ago

Nyan274 commented 1 month ago

By August 2024, Google requires the Apps with one-time or infrequent use of photos are requested to remove READ_MEDIA_IMAGES and READ_MEDIA_VIDEO permissions from their app manifest and migrate to a system photo picker if necessary.

Since the client app doesn't use photo and video messaging feature, it's hard to pass the app review by play store.

https://support.google.com/googleplay/android-developer/answer/14115180?hl=en

https://support.google.com/googleplay/android-developer/answer/13986130?sjid=2278959419600922286-AP

JcMinarro commented 1 month ago

Hello @Nyan274 The SDK needs those permissions to work, because it is a core functionality. If your app doesn't use this functionallity at all, you can remove those permission from the Andorid Manifest by using the following line:

    <uses-permission android:name="android.permission.READ_MEDIA_IMAGES" tools:node="remove" />
    <uses-permission android:name="android.permission.READ_MEDIA_AUDIO" tools:node="remove" />
    <uses-permission android:name="android.permission.READ_MEDIA_VIDEO" tools:node="remove" />