Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firebase - App Distribution failed to fetch app information: [403] The caller does not have permission [duplicate]

I was working on Firebase App Distribution using gradle.

I already followed all steps from this firebase official link and it still doesn't work. When I run this ./gradlew assembleDemoDebug appDistributionUploadDemoDebug, it always return this error App Distribution failed to fetch app information: [403] The caller does not have permission .

Here's my gradle settings.

    buildTypes {
    debug {
        ...

        firebaseAppDistribution {
            appId = "1:12345678:android:12345678abc"
            releaseNotes = "test"
            groups = "android-qa"
            serviceCredentialsFile = "android-app-distribution-key.json"
        }
}

I already contacted the google support team, but maybe you guys have a similar experience with this issue. Am I missing something here?

Thanks

like image 371
Webster Avatar asked Jun 15 '20 10:06

Webster


People also ask

How does Firebase app Distribution work for iOS?

Firebase App Distribution makes distributing your apps to trusted testers painless. By getting your apps onto testers' devices quickly, you can get feedback early and often. And if you use Crashlytics in your apps, you'll automatically get stability metrics for all your builds, so you know when you're ready to ship.

How do I distribute Android apps for testing?

Distribute your app to testersSelect your Firebase project when prompted. On the Releases page, select the app you want to distribute from the drop-down menu. Drag your app's APK file to the console to upload it. When the upload completes, specify the tester groups and individual testers you want to receive the build.

Do firebase builds expire?

App releases expire after 150 days When you upload a release of your app to Firebase, the release appears in the App Distribution dashboard for 150 days, starting from the upload date.


1 Answers

A couple things to try. First, make sure the service account has the needed permission. To confirm:

  1. Find the client_email in the service account file
  2. Go to GCP > select your Firebase project > click IAM & admin > click IAM https://console.cloud.google.com/iam-admin/iam?project=_
  3. Make sure the IAM row for the client_email in step 1 has the Firebase App Distribution Admin role, or add it if it is missing. Check by clicking the "edit" pencil icon to the right-side of the row and a panel will show the current roles. If Firebase App Distribution Admin isn't there, press "+ ADD ANOTHER ROLE" and include it.

Also, double check that you're using the most up to date version of the Gradle plugin: https://firebase.google.com/docs/app-distribution/android/distribute-gradle#step_1_set_up_your_android_project

like image 198
Alexizamerican Avatar answered Sep 23 '22 06:09

Alexizamerican