dpd-fcm

0.1.3 • Public • Published

FCM Push notifications for Deployd

Install

npm install dpd-fcm --save

Configure

  1. Read Configure FCM Server
  2. Create a FCM resource in Dashboard
  3. 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.

Package Sidebar

Install

npm i dpd-fcm

Weekly Downloads

0

Version

0.1.3

License

ISC

Last publish

Collaborators

  • itomanu