As you may know, Firebase Cloud Messaging (FCM) is ending support for their older API by June 2024, and they've recommended that all users switch to the newer HTTP v1 API before then. This change is crucial to ensure the reliability and functionality of push notifications for your mobile and web applications. Firebase explains that, in addition to ongoing support and new features, the HTTP v1 API offers better security through access tokens and is more adaptable and future-proof for upcoming client platform versions compared to the older APIs.
The FCM legacy APIs used the “Server key” for authenticating server-to-server requests. That has now been replaced with Google service accounts.
How does it affect Apps using CometChat?
Starting June 20, 2024, Push notifications will stop working for your apps if the CometChat Push notifications extension doesn’t have the updated Google Service account. To resolve this, you need to follow the below steps:
1) Generate a private key file for your service account:
- In the Firebase console, open Settings > Service Accounts.
- Click Generate New Private Key, then confirm by clicking Generate Key.
- Securely store the JSON file containing the key.
2) Upload the JSON file to the Push Notification extension’s settings:
- On the CometChat dashboard, select your app.
- Go to the Extensions section and open the settings for the Push Notifications extension.
- Upload the previously downloaded JSON file containing the key.
- Click on save to update the settings.
No changes are required in your front-end applications.
Multi-tenant customers who would like to bulk update all their Apps at once can use our Management APIs. Within the Settings Object you will upload the information from your FCM Service Account file to the relevant FCMCredentials Objects.
Comments
0 commentsPlease sign in to leave a comment.