JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q12774F
  • License ISC

send push notif to client, using Firebase Cloud Messaging

Package Exports

  • dpd-fcm

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (dpd-fcm) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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.