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
- 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.