Skip to content

Firebase Cloud Messaging returns SERVICE_NOT_AVAILABLE only in release build #7009

Closed
@HossamSadekk

Description

@HossamSadekk

[READ] Step 1: Are you in the right place?

Yes — this issue is about a bug in Firebase Cloud Messaging in release builds.

[REQUIRED] Step 2: Describe your environment

Android Studio version: Arctic Fox 2020.3.1 Patch 4 (replace with your actual version)
Firebase Component: Firebase Cloud Messaging (FCM)
Component version: com.google.firebase:firebase-messaging:23.4.1 (replace if different)

[REQUIRED] Step 3: Describe the problem

In my Android app, calling FirebaseMessaging.getInstance().token works correctly in debug builds, but fails in release builds with the following exception but in specific devices

SERVICE_NOT_AVAILABLE

Steps to reproduce:

Steps to reproduce:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions