- 27 Oct 2024
- 1 Minute to read
- DarkLight
Version 4.32.1
- Updated on 27 Oct 2024
- 1 Minute to read
- DarkLight
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);