itisnajim / strapi-plugin-fcm

Send FCM notifications from your Strapi app.
MIT License
23 stars 15 forks source link

Using Deperecated Endpoint of Firebase API's: Raw server response: "{"error":"Deprecated endpoint, see https://firebase.google.com/docs/cloud-messaging/migrate-v1"}" #25

Open rehan-focusteck opened 1 month ago

rehan-focusteck commented 1 month ago

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.

huynhhq commented 2 weeks ago

same, please help me