## Bug Report See https://github.com/firebase/firebase-android-sdk/pull/8087 ### Plugin(s) <!-- List the plugins and versions that this bug affects. --> * @capacitor/push-notifications ### Capacitor Version <!-- Paste the output from the `npx cap doctor` command into the code block below. This will provide the versions of Capacitor packages and related dependencies. --> ``` Installed Dependencies: @capacitor/ios: not installed @capacitor/cli: 8.4.2 @capacitor/android: 8.4.2 @capacitor/core: 8.4.2 ``` ### Platform(s) <!-- List the platforms that this bug affects. --> - Android ### Current Behavior [MessagingService.java](https://github.com/ionic-team/capacitor-plugins/blob/main/push-notifications/android/src/main/java/com/capacitorjs/plugins/pushnotifications/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.
Bug Report
See firebase/firebase-android-sdk#8087
Plugin(s)
Capacitor Version
Platform(s)
Current Behavior
MessagingService.java uses
onNewTokento 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
onRegisteredmust be used to receive a Firebase Installation ID, which replaces tokens.