Skip to content

Android Firebase error

Firebase: “java.io.IOException: FIS_AUTH_ERROR”

Cloud Messaging, Remote Config, Analytics or In-App Messaging fails on Android with java.io.IOException: FIS_AUTH_ERROR (often logged as Failed to get FIS auth token). These SDKs depend on the Firebase Installations API. The request was rejected, almost always because of the API key: it is restricted in a way that blocks the Firebase Installations API or your app, or the app uses options from an old or different Firebase project.

Rather hand it over? App Fix Ticket: One reproducible bug in an existing mobile or web app, diagnosed and fixed.The Fix is $1,200 in total. The $450 Diagnosis is optional and credited toward it.

Full refund if Simon can’t take it on once he sees your project, or if you cancel before work starts. Refund terms.

Short answer

In Google Cloud console, under APIs & Services, Credentials, open the API key your app uses (it is in google-services.json). Add Firebase Installations API to its API restrictions, and check that its Android app restriction lists your package name with the right SHA-1, or set it to None. Make sure the Firebase Installations API is enabled, then download a fresh google-services.json and rebuild.

Rather not fix it yourself? App Fix Ticket fixes one reproducible bug at a fixed price, with an optional Diagnosis that is credited toward the fix.

Why Firebase Installations rejects the app, and the fix

  1. 01

    API restrictions that leave out Firebase Installations

    “make sure that the API key(s) used in your application(s) are whitelisted for the Firebase Installations API” GitHub, API-Key restrictions (firebase-installations)

    A key restricted to a list of APIs needs Firebase Installations API on that list. Edit the key in Google Cloud console and add it. If the key shows Don’t restrict key, you may be looking at a different key than the app uses.

  2. 02

    Android app restrictions that don’t match the build

    An Android app restriction allows only listed package names and SHA-1 fingerprints. Debug, release and Play App Signing builds each have their own SHA-1; add each one, or set Application restrictions to None for Firebase keys. signingReport shows your local keys; copy the Play App Signing SHA-1 from Play Console (Test and release, App signing).

    cd android
    ./gradlew signingReport   # prints the SHA-1 for each build variant
  3. 03

    Old or mismatched Firebase options

    “Errors during communication with the Firebase Installations API indicate invalid Firebase options or misconfigurations regarding the API key used in your application.” GitHub, Firebase Android SDK maintainer note

    An API key, project ID or app ID from another project, or a deleted key, fails the same way. Download google-services.json again from Project settings, or run flutterfire configure in a Flutter app, then rebuild.

  4. 04

    The Firebase Installations API is disabled

    If Firebase Installations API isn’t in the list when you edit the key, enable it for the project in the Google Cloud API library first. Then check its metrics page for successful requests after a fresh install of the app.

Checked against the vendor’s docs on : Firebase Android SDK: API-Key restrictions for Firebase Installations; Firebase Android SDK issue #1286: maintainer mitigation steps; Firebase: API keys for Firebase.

Rather hand it over?

Fixed scope, fixed price, paid upfront. The work happens in writing; no call needed.

“Very responsive, attentive to fixing bugs, and completed the project as needed! Thank you!”
A buyer in the United States, July 2022. Shopify on Fiverr
Read 126 of the 127 Fiverr reviews

Related: FCM “registration token is not registered” · Firebase Auth “invalid API key” in production · Android google-services “version conflict” · FCM THIRD_PARTY_AUTH_ERROR

Questions

More on this error

Why do only some users get it?

Per the Firebase Android SDK maintainers, mainly users who installed the app after an update to SDK versions that use Firebase Installations are affected, which is why only some devices fail.

Is it safe to loosen the key restrictions?

Add only the Firebase Installations API. Firebase’s docs say keys restricted to Firebase services don’t need to be treated as secrets, with data protected by Security Rules and App Check. Never add the Gemini Developer API to a key that ships in your app.

Can you fix it for me?

If one bug is the whole problem, the App Fix Ticket covers it. If you already know the cause, you can pay for the fix directly; if not, start with a written diagnosis, which is credited toward the fix. If the app has more going on, the Launch Check is a written check of the whole app. Each issue found is rated critical, high, medium or low, with where it is and how it was confirmed. No issues worth fixing, no charge. If the Launch Check finds nothing rated medium or higher, Simon refunds the full $450. You keep the report either way. This applies to the first 10 Launch Checks bought after October 30, 2026.

A different error?

Ask Simon for a price range

Send the error and what you were doing. Simon replies by email, usually within one business day, with a price range.