Skip to content

Migrate to using Firebase Installation ID (FID) instead of now deprecated Cloud Messaging Token #2570

Description

@tobias-kuendig

Bug Report

See firebase/firebase-android-sdk#8087

Plugin(s)

  • @capacitor/push-notifications

Capacitor Version

Installed Dependencies:

  @capacitor/ios: not installed
  @capacitor/cli: 8.4.2
  @capacitor/android: 8.4.2
  @capacitor/core: 8.4.2

Platform(s)

  • Android

Current Behavior

MessagingService.java uses onNewToken to receive a FCM cloud messaging token.

This method (and the usage of tokens) has been deprecated: https://firebase.google.com/docs/reference/android/com/google/firebase/messaging/FirebaseMessagingService#onRegistered(java.lang.String)

Expected Behavior

The new onRegistered must be used to receive a Firebase Installation ID, which replaces tokens.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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