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 46 forks source link

Use Firebase Admin SDK? #20

Closed antoinerousseau closed 7 years ago

antoinerousseau commented 7 years ago

I saw that Firebase released this:

A new admin.messaging() service allows you to send messages through Firebase Cloud Messaging. The new service includes the sendToDevice(), sendToDeviceGroup(), sendToTopic(), and sendToCondition() methods.

https://firebase.google.com/support/release-notes/admin/node https://firebase.google.com/docs/reference/admin/node/admin.messaging

Maybe we should use it?

jlcvp commented 7 years ago

This new sdk makes this lib obsolete, I'll be releasing soon a new "version" of the readme encouraging the use of the google's native node client. Additionally I will port the current version to use firebase back-end for those who still want to use callbacks instead of promises.

yofu1234 commented 7 years ago

What about the newly released firebase cloud functions, does that make firebase admin sdk obsolete?