jlcvp / fcm-node

A Node.JS simple interface to Google's Firebase Cloud Messaging (FCM) for Android & iOS & Web Notification and data push
MIT License
125 stars 48 forks source link

Update Legacy HTTP Protocol to HTTP v1 API #100

Open GUDDU434 opened 2 months ago

GUDDU434 commented 2 months ago

The Firebase Cloud Messaging (FCM) API you're using is outdated or deprecated. Google has transitioned from using the Legacy HTTP Protocol to HTTP v1 API for sending FCM messages, and the API you're using (fcm-node) likely still uses the old protocol.

Existing send method gives below error:

{"multicast_id":8968610879307183290,"success":0,"failure":1,"canonical_ids":0,"results":[{"error":"DeprecatedApi"}]}

jlcvp commented 2 months ago

hi @GUDDU434, thanks for opening the issue, but this lib is barely maintained and is deprecated since 2017. I'll see if I have time to give it a little survival time, but I can't guarantee