skip to content

Your beta Android build calls the Firebase App Distribution SDK's updateIfNewReleaseAvailable, yet a tester never sees a new-build alert; how do you diagnose it?

level: seniorimportance: nice to knowfreq 15%

answer

  1. which library is in this variant
  2. listen for the failure
  3. Testers API and key restrictions
  4. tester accepted, same account
  5. sign-in flag survives until cleared

basics

~20 s

Confirm the beta variant ships the full firebase-appdistribution SDK, not just the API library; log the Task's FirebaseAppDistributionException; check the Firebase App Testers API is enabled and allowed by the API key; and check the tester accepted the release with that account.

solid answer

~40 s

The SDK comes in two libraries: `firebase-appdistribution-api`, safe in every variant, and the full `firebase-appdistribution`, which must sit only in pre-release variants because its self-update code can breach Google Play policy. With only the API library, calls do nothing and fail with `Status.NOT_IMPLEMENTED`. So: confirm the beta variant has the full SDK; attach an `addOnFailureListener` and log the `FirebaseAppDistributionException`'s `errorCode`; run `adb shell setprop log.tag.FirebaseAppDistribution VERBOSE` and filter logcat for `FirebaseAppDistribution`. Then check the **Firebase App Testers API** is enabled and listed in the API key's restrictions, and that the tester is on that release in the **Accepted** state, signed in with the account that accepted. Clearing SharedPreferences on logout also wipes the SDK's signed-in flag.

code

kotlin · 5 lines
kotlin
// app/build.gradle.kts (excerpt); the "beta" build type is declared in android { buildTypes { } }
dependencies {
    implementation("com.google.firebase:firebase-appdistribution-api:16.0.0-beta20")
    "betaImplementation"("com.google.firebase:firebase-appdistribution:16.0.0-beta20")
}

go deeper

for a junior

Know that the in-app alert comes from an optional App Distribution SDK and that only invited, signed-in testers see it.

for a middle

Explain the two libraries, the sign-in then check then dialog sequence of updateIfNewReleaseAvailable, and why the full SDK stays out of Play builds.

for a senior

Diagnose in order: the variant's dependencies, the Task's exception, verbose logcat, the tester's Accepted state and account, the App Testers API and key restrictions.

for a principal

Decide whether a beta SDK with Play-policy risk belongs in the build at all, and enforce the variant split so it cannot leak into a store upload.

## What the in-app alert does The optional **App Distribution Android SDK** lets a test build tell its tester that a newer build is available. Its one-call **basic configuration**, `FirebaseAppDistribution.getInstance().updateIfNewReleaseAvailable()`, runs this sequence each time you call it, typically from the main activity's `onResume`: 1. If the tester has not enabled alerts yet, it asks them to **sign in** to App Distribution with their Google Account. That is a one-time step that lasts until the app is uninstalled or calls `signOutTester()`. 2. It **checks** whether a newer build exists that this tester can install. 3. It shows a prebuilt **update dialog**. For an APK it downloads in the background, reports progress through `NotificationManager` (on Android 13 and later the progress notification needs the `POST_NOTIFICATIONS` runtime permission) and then prompts to install; for an AAB it sends the tester to Google Play. The **advanced configuration** splits this into `isTesterSignedIn`, `signInTester()`, `checkForNewRelease()` (the release is `null` when nothing is newer) and `updateApp()`, so you can draw your own UI. Both SDKs are **beta**: their behaviour can change in backward-incompatible ways. ## The two libraries, and why the split matters | Library | Where it goes | What it does | |---|---|---| | `firebase-appdistribution-api` | every variant, including the Play build | the API surface; calls have no effect on their own | | `firebase-appdistribution` | only variants meant exclusively for pre-release testing | the implementation, including self-update | The full SDK's self-update code may be considered a violation of Google Play policy **even if it never runs**, and shipping it to Google Play can get the app removed. The setup guide therefore adds the API library with `implementation` and the full SDK with a variant-specific configuration such as `betaImplementation`. The flip side is the first thing to check when alerts never show: if the build the tester runs has only the API library, the update and release-check calls do nothing and fail with `FirebaseAppDistributionException` and `Status.NOT_IMPLEMENTED`. That is the expected result in a Play build and a wiring mistake in a beta build. ## A diagnosis in order 1. **Is the full SDK in this variant?** Check the dependency configuration and which variant was actually uploaded to App Distribution. 2. **What does the Task report?** Attach `addOnFailureListener`, check for `FirebaseAppDistributionException` and log its `errorCode`. A silent call site hides the answer. 3. **Turn on verbose logging** on the tester's device with `adb shell setprop log.tag.FirebaseAppDistribution VERBOSE`, then filter logcat for `FirebaseAppDistribution`. A message that no release was found or that the tester has no access points at the next step. 4. **Does the tester have the release?** In the console, open the exact release and make sure the tester is listed and in the **Accepted** state. A tester added to a release after ignoring the first invitation is still not accepted. 5. **Is the tester signed in with the right account?** They must use the Google Account they accepted the invitation with, in App Tester or the tester web app, and the new release should be visible there. 6. **Is the backend API reachable?** The **Firebase App Testers API** must be enabled in the Google Cloud console, and if the app's API key has restrictions, that API must be in the allowed list. 7. **Is the right Firebase app configured?** When the project has several apps, the distributed app needs its own `google-services.json`. ## The repeated sign-in symptom If testers are asked to sign in again after every restart, two causes dominate: the Firebase App Testers API is not enabled or not allowed by the key restrictions, or the app clears all **SharedPreferences** on user logout and wipes the flag App Distribution keeps to remember the tester's sign-in. ```kotlin FirebaseAppDistribution.getInstance() .updateIfNewReleaseAvailable() .addOnFailureListener { e -> if (e is FirebaseAppDistributionException) { Log.w("BetaUpdates", "App Distribution check failed: ${e.errorCode}", e) } } ``` ## Keeping it out of the release - Put the full SDK behind a pre-release-only configuration and check the Play variant's dependency tree in CI. - Gate any custom sign-in UI on the build type, so a Play user never sees an App Distribution prompt. - Treat `NOT_IMPLEMENTED` as the normal, silent outcome in a Play build rather than an error to report. Most "no alert" reports end at step 1 or step 4: the wrong library in the build, or a tester who is not actually on the release.

  • Your Play build also calls updateIfNewReleaseAvailable and its failure listener reports NOT_IMPLEMENTED; is that a bug?
    No. The Play variant should carry only `firebase-appdistribution-api`, and without the full implementation its update and release-check calls do nothing and fail with `Status.NOT_IMPLEMENTED`. Firebase's own sample treats that code as the expected result when building for Play. Handle it silently and keep the full SDK, with its self-update code, out of anything uploaded to Google Play.
  • Testers are asked to sign in to App Distribution every time they reopen the beta app; what do you check?
    Sign-in should be a one-time step that lasts until uninstall or `signOutTester()`. Check that the Firebase App Testers API is enabled and included in the API key's allowed APIs, then look for app code that clears all SharedPreferences on logout, which also wipes the flag App Distribution keeps for the signed-in tester.

  • Ship the full App Distribution SDK everywhere; unused code is harmless.
  • NOT_IMPLEMENTED means the Firebase project is misconfigured.
  • Anyone with the beta installed sees alerts, invited or not.
  • Testers must sign in to App Distribution on every app launch.
  • The API-only library is enough to show the update dialog.

Assumes the App Distribution Android SDK's 16.0.0 beta line (16.0.0-beta21 on Google Maven, 2026-10-10); a beta SDK can change incompatibly, so recheck the setup guide on upgrade.