node-gcm2
v0.9.10
Published
The goal of this proyect is providing a way to send GCM notifications to more than 1000 users easily.
Downloads
3
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
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.
});