0.0.4 • Published 10 years ago

ngcm v0.0.4

Weekly downloads
3
License
-
Repository
github
Last release
10 years ago

NGcm

Simple Node JS Library For Google Cloud Messaging

Example Usage:

var NGcm = require("./lib/ngcm");
var gcm = new NGcm.Gcm("YOUR SERVER KEY from Google cloud console");
gcm.setReceiver(["RECEIVERS_ID"]);
gcm.addMessage("key1", "value1");


//OPTIONAL PARAMS

//parameter is boolean value
gcm.testMode(true);

//parameter is integer (seconds)
gcm.ttl(120);

//sparameter is string
gcm.collapseKey("Update");

//parameter is boolean value
gcm.delayWhileIdle(true);

gcm.send(function(result) {
  console.log(result);
})
0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago