light-fcm-push

1.0.41 • Public • Published

light-fcm-push

A light module focused on Firebase Clud Messaging for AWS Lambda.

Use example

var fcm = require('light-fcm-push');
var serverKey = "your server key";
var message = {
    to: token,
    priority: "normal",  //must be normal or high
    notification: {
       title: "Push Title",
       body: "Push content"
    },
    data: { //Optional
       yourOwnKey: "content for this key",
       otherKey: "content"
    }
 };
 //This will return a promisse
 return fcm.send(message, serverKey);

/light-fcm-push/

    Package Sidebar

    Install

    npm i light-fcm-push

    Weekly Downloads

    7

    Version

    1.0.41

    License

    ISC

    Last publish

    Collaborators

    • rafaelsbrissa