dpd-fcm
v0.1.3
Published
send push notif to client, using Firebase Cloud Messaging
Downloads
1
Readme
FCM Push notifications for Deployd
Install
npm install dpd-fcm --save
Configure
- Read Configure FCM Server
- Create a FCM resource in Dashboard
- Set your SERVER_KEY in Settings
Usage
dpd.resourcename.post(
{ "notification": {
"title": "Portugal vs. Denmark",
"text": "5 to 1"
},
"to" : "bk3RNwTe3H0:CI2k_HHwgIpoDKCIZvvDMExUdFQ3P1..."
},
function(result, err) {
console.log(result);
}
);
Reff
For more information about params and result, here.