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

Migrating guide from fcm-node to firebase-admin #53

Closed ghost closed 5 years ago

ghost commented 5 years ago

As per the warning on Readme, it is advisable to use firebase-admin instead of fcm-node. I followed the link to documentation but am not sure how to implement it.

It would be better to have a wiki conveying how to migrate from fcm-node to firebase-admin. Something like what exactly I need to change if I have implemented fcm-node and want to replace it with firebase-admin.

Any help would be appreciated. Thanks.

jlcvp commented 5 years ago
  1. click on the link on Readme that points to admin.messaging() - there you`ll find how to get an instance of Messaging Service
  2. Open Messaging documentation and find the methods you need to send message to devices, conditions and topics with a little more power than this interface library