Using Deperecated Endpoint of Firebase API's: Raw server response: "{"error":"Deprecated endpoint, see https://firebase.google.com/docs/cloud-messaging/migrate-v1"}" #25
While using the strapi-plugin-fcm library in my project, I encountered a deprecation warning when sending notifications. The warning message indicated that several endpoints in the firebase-admin SDK had been deprecated, leading to errors such as:
I figured out that these are deprecated endpoints of firebase SDK which are in use in this library
sendMulticast()
sendToCondition()
sendToDevice()
sendToTopic()
Please update the dependency and replace the deprecated endpoints to maintain compatibility with the latest Firebase Admin SDK and ensure smooth operation.
Description of Changes
While using the strapi-plugin-fcm library in my project, I encountered a deprecation warning when sending notifications. The warning message indicated that several endpoints in the firebase-admin SDK had been deprecated, leading to errors such as:
FirebaseMessagingError: An unknown server error was returned. Raw server response: {"error":"Deprecated endpoint, see https://firebase.google.com/docs/cloud-messaging/migrate-v1"}
I figured out that these are deprecated endpoints of firebase SDK which are in use in this library
Please update the dependency and replace the deprecated endpoints to maintain compatibility with the latest Firebase Admin SDK and ensure smooth operation.