Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

node-gcm2

necudeco31ISC0.9.10

The goal of this proyect is providing a way to send GCM notifications to more than 1000 users easily.

gcm

readme

The goal of this proyect is providing a way to send GCM notifications to more than 1000 users easily.

Installation

npm install node-gcm2 --save

Usage

`js var gcm2 = require('node-gcm2');

// tokens is an array with all tokens to send ( it could be more than 1000 ... much more ) // sender, is a sender var from node-gcm // message, is a message var from node-gcm // https://www.npmjs.com/package/node-gcm

gcm2.send(tokens, sender, message, function(badTokens){ //badTokens is an array with all tokens with error from FCM.
});