JSPM

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

A light lib to Firebase Cloud Messaging (FCM) for Android and iOS

Package Exports

  • light-fcm-push

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 (light-fcm-push) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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);