Search code examples
androidreact-nativeexpogoogle-play-consoleeas

Google play console submit permissions error


I am building react native app with EAS for Android only, I tried to submit to Google Play Console but I got this error:

× Something went wrong when submitting your app to Google Play Store.

We couldn't figure out what went wrong. See logs to learn more.

[logs] Start phase: SPIN_UP_SUBMISSION_WORKER
[logs] Creating new worker instance
[logs] End phase: SPIN_UP_SUBMISSION_WORKER

[logs] Start phase: SUBMIT_TO_PLAY_STORE
[logs] Starting the submit process
[logs] Downloading archive
[logs] Preparing artifact
[logs] Submitting Android app to Play Store...
[logs] Submitting the app with fastlane supply
[logs] +-------------------------------------------------------------------------------------------------------------------------------------------------+
[logs] |                                                           Summary for supply 2.220.0
                                 |
[logs] +------------------------------------+------------------------------------------------------------------------------------------------------------+
[logs] | aab                                | /tmp/submissions/c3ba0f33-7a79-4278-9a15-a5be0078aca2/application_63a4a0b6_26df_4832_9004_81a35179f5fb.aab |
[logs] | track                              | internal
                                 |
[logs] | json_key                           | /tmp/submissions/c3ba0f33-7a79-4278-9a15-a5be0078aca2/service-account.json                                 |
[logs] | package_name                       | com.basselturky.bluekiwiapp
                                 |
[logs] | changes_not_sent_for_review        | false
                                 |
[logs] | release_status                     | completed
                                 |
[logs] | skip_upload_apk                    | false
                                 |
[logs] | skip_upload_aab                    | false
                                 |
[logs] | skip_upload_metadata               | false
                                 |
[logs] | skip_upload_changelogs             | false
                                 |
[logs] | skip_upload_images                 | false
                                 |
[logs] | skip_upload_screenshots            | false
                                 |
[logs] | sync_image_upload                  | false
                                 |
[logs] | track_promote_release_status       | completed
                                 |
[logs] | validate_only                      | false
                                 |
[logs] | check_superseded_tracks            | false
                                 |
[logs] | timeout                            | 300
                                 |
[logs] | deactivate_on_promote              | true
                                 |
[logs] | rescue_changes_not_sent_for_review | true
                                 |
[logs] | ack_bundle_installation_warning    | false
                                 |
[logs] +------------------------------------+------------------------------------------------------------------------------------------------------------+
[logs]
[logs] Preparing aab at path '/tmp/submissions/c3ba0f33-7a79-4278-9a15-a5be0078aca2/application_63a4a0b6_26df_4832_9004_81a35179f5fb.aab' for upload...
[logs] Updating track 'internal'...
[logs] Uploading all changes to Google Play...
[logs] Google Api Error: Invalid request - You must let us know whether your app uses any photo and video permissions - Retrying...
[logs] Google Api Error: Invalid request - You must let us know whether your app uses any photo and video permissions - Retrying...
[logs] Google Api Error: Invalid request - You must let us know whether your app uses any photo and video permissions - Retrying...
[logs] Google Api Error: Invalid request - You must let us know whether your app uses any photo and video permissions - Retrying...
[logs] Google Api Error: Invalid request - You must let us know whether your app uses any photo and video permissions - Retrying...
[logs] [!] Google Api Error: Invalid request - You must let us know whether your app uses any photo and video permissions
[logs] Fastlane supply failed
[logs] Failed to submit the app to the store
[logs] End phase: SUBMIT_TO_PLAY_STORE

these are the permissions I have:

  <uses-permission android:name="android.permission.INTERNET"/>
  <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
  <uses-permission android:name="android.permission.READ_MEDIA_IMAGES"/>
  <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
  <uses-permission android:name="android.permission.VIBRATE"/>
  <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
  <uses-permission android:name="com.google.android.gms.permission.AD_ID"/>

This error happened after I installed these two libraries:

expo-file-system
expo-media-library

I wanted to add image download from a URL functionality.

In my Google Play Console, I have declared Data safety for photos and videos.

what am I missing here?


Solution

  • First I am building my app on React native EAS.

    In App content, (Photo and video permissions) was missing.

    I had to fill out this form in order to submit my app,

    The form looks like this:

    "

    Photo and video permissions Your app uses the following undeclared photo and video permissions

    android.permission.READ_MEDIA_IMAGES

    android.permission.READ_MEDIA_VIDEO If your app has a one-time or infrequent need to access photos and videos, migrate to the Android photo picker, or a photo picker of your choice.

    If your app needs to access photos and videos frequently, let us know why you believe you meet the requirements to use these permissions.

    To learn more about Google Play's Photo and Video Permissions policy, visit the Help Center.

    Read media images Describe your app's use of the READ_MEDIA_IMAGES permission

    Read media video Describe your app's use of the READ_MEDIA_VIDEO permission

    "

    To make (Photo and video permissions) appears in App content,

    I had to manually upload the aap, normally I use these commands:

    eas build -p android --profile production
    eas submit -p android --latest
    

    the error always happen during eas submit -p android --latest.

    To manually upload your app: Go to Google Play Console > Select your app > Test and release > Production > Create new release button.

    Then upload your app bundle you got from eas build -p android --profile production

    Click next,

    An error should appear saying that you should fill (Photo and video permissions) form.

    At this point, if you go to App content you should see (Photo and video permissions)

    Fill it, Wait for the review to be completed and you are good to go.

    Now cancel the release draft and go back to:

    eas build -p android --profile production
    eas submit -p android --latest
    

    It should work

    These are the permissions I have in AndroidManifest.xml:

      <uses-permission android:name="android.permission.INTERNET"/>
      <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
      <uses-permission android:name="android.permission.READ_MEDIA_IMAGES"/>
      <uses-permission android:name="android.permission.READ_MEDIA_VIDEO"/>
      <uses-permission android:name="android.permission.READ_MEDIA_VISUAL_USER_SELECTED"/>
      <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
      <uses-permission android:name="android.permission.VIBRATE"/>
      <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
      <uses-permission android:name="com.google.android.gms.permission.AD_ID"/>