appfeel / node-pushnotifications

Push notifications for GCM, APNS, MPNS, AMZ (automatic detection from device token)
MIT License
540 stars 126 forks source link

GCM - FCM implementation doubt #96

Closed ErnestoSalazar closed 6 years ago

ErnestoSalazar commented 6 years ago

Hello!, i wanted to ask if this module have the latest version of node-gcm implemented because of the changes from Google Cloud Messaging to Firebase Cloud Messaging.

thanks in advance

alex-friedl commented 6 years ago

Yes, the library uses the latest version of node-gcm, which according to the README supports FCM since 0.14.1.

guss77 commented 2 years ago

As far as I can tell, node-gcm cannot be used with new Firebase projects due to the fact that it doesn't support service tokens and isn't using the HTTPv1 API.

I think this project should instead change the GCM implementation to use fcm-node that supports service tokens and uses the new API, or just use firebase-admin directly instead (which is what fcm-node is using to implement new API support).