FCM: Fetching FCM registration token failed Android Origin: On your device OSI layer 7 · Application Last updated 25 Nov 2026

FirebaseMessaging: Fetching FCM registration token failed java.io.IOException: SERVICE_NOT_AVAILABLE

The device couldn't register with Firebase Cloud Messaging.

Exact message you may see Fetching FCM registration token failedSERVICE_NOT_AVAILABLE FCMFirebaseMessaging token failedW/FirebaseMessaging: Fetching FCM registration token failed java.io.IOException: java.util.concurrent.ExecutionException: java.io.IOException: SERVICE_NOT_AVAILABLE
Seen on: Android Firebase

Meaning

SERVICE_NOT_AVAILABLE is usually network or Google Play services trouble. Retry with backoff; on emulators use a Google Play image and check the date/time.

Common causes

  • No network or blocked FCM
  • Play services missing/outdated
  • Wrong google-services.json

⚡ Quick fix

  1. Retry with backoff
  2. Use an emulator image with Google Play
  3. Verify google-services.json package name

Detailed fix by platform

Kotlin

  1. FirebaseMessaging.getInstance().token.addOnCompleteListener { if (!it.isSuccessful) Log.w("FCM", "failed", it.exception) }

How to diagnose

  1. Network — online?
  2. Play services — present?
  3. Config — matches package?

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

Where this error sits

Origin: On your device. Errors that are often confused with or caused by this one (click to open):

ApiException: 10 — Google Sign-In: com.google.android.gms.common.api.ApiException: 10 (DEVELOPER_ERROR) (Android)ApiException: 10APNs: 410 Unregistered / DeviceTokenNotForTopic — {"reason":"Unregistered","timestamp":1700000000} (iOS)APNs: 410 Unregistere…APNs: BadDeviceToken (400) — {"reason":"BadDeviceToken"} HTTP/2 400 from api.push.apple.com (iOS)APNs: BadDeviceToken …Crashlytics: unsymbolicated stack traces / mapping file not uploaded — Crashlytics: Missing deobfuscation mapping file (Android)Crashlytics: unsymbol…Default FirebaseApp is not initialized — IllegalStateException: Default FirebaseApp is not initialized in this process (Android)Default FirebaseApp i…File google-services.json is missing — File google-services.json is missing. The Google Services Plugin cannot function without it. (Android)File google-services.…Firebase Analytics events not appearing in DebugView — (behavior) logEvent does nothing in DebugView (Android)Firebase Analytics ev…FirebaseNetworkException: A network error (such as timeout, interrupted connection or unreachable host) has occurred — FirebaseNetworkException: A network error (such as timeout, interrupted connection or unreachable host) has occurred. (Android)FirebaseNetworkExcept…FCM: Fetc…

Explore the map of this error Full error map →

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.

💬 What worked for others

No tips yet — did something else fix this for you?

Share what worked for you

Tips are checked by an editor before they appear. Links are removed.