Version 4.32.1
  • 27 Oct 2024
  • 1 Minute à lire
  • Sombre
    Lumière

Version 4.32.1

  • Sombre
    Lumière

The content is currently unavailable in French. You are viewing the default English version.
Résumé de l’article

New features and enhancements

Android

Firebase Cloud Messaging (FCM): removal of deprecated legacy APIs

As announced, Google has deprecated the legacy APIs and will remove these in June 2024. (For more information, refer to the Firebase Cloud Messaging documentation and the Firebase Migration from Legacy APIs documentation).

The Notification SDK Server for .NET has been updated to use the new Firebase Cloud Messaging (FCM) APIs.

You have to update your integration before 20 June 2024. You must update your server and use a Service Account with the following method instead:

NotificationSDKServerCredentials credentials = new();
credentials.SetAndroidFirebaseServiceAccountJson(ANDROID_FIREBASE_SERVICE_ACCOUNT_JSON);

If you are using the Notification SDK Server for Java, the impact of the API removal depends on your integration of the SDK:

  • If you no longer use legacy server keys and are already setting the credentials using NotificationSDKServerCredentials.setAndroidFirebaseServiceAccountJson(ANDROID_FIREBASE_SERVICE_ACCOUNT_JSON), you do not need to take any further action. In this case, the SDK already uses the new FCM APIs, and notifications will be delivered seamlessly.

If you are setting the credentials by using the deprecatedNotificationSDKServerCredentials.setAndroidPlatformCredentials(SERVER_KEY) method, you have to update your integration! Before 20 June 2024, you must update your server and use a Service Account with the following method instead:

NotificationSDKServerCredentials credentials = new NotificationSDKServerCredentials();
credentials.setAndroidFirebaseServiceAccountJson(ANDROID_FIREBASE_SERVICE_ACCOUNT_JSON);


Cet article vous a-t-il été utile ?

What's Next
Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.
ESC

Ozzy, facilitant la découverte de connaissances grâce à l’intelligence conversationnelle