aerogear-sender-client
Advanced tools
Comparing version 0.2.0 to 0.3.0
@@ -6,6 +6,10 @@ var agSender = require( "./lib/aerogear-sender-client" ).AeroGear, | ||
//Send a Selective Message | ||
//Send a Message | ||
message = { | ||
alert: "Hi" | ||
alert: "Hi", | ||
sound: "default", | ||
badge: 2, | ||
someKey: "some value", | ||
anotherCustomKey: "some other value" | ||
}; | ||
@@ -17,5 +21,3 @@ | ||
ttl: 3600, | ||
"simple-push": { | ||
"broadcast": "version="+ new Date().getTime() + "" | ||
}, | ||
"simple-push": "version=123", | ||
criteria: { | ||
@@ -22,0 +24,0 @@ variants: [ "1234", "56788" ] |
@@ -24,4 +24,2 @@ /* Node.js Sender API for the AeroGear Unified Push server | ||
function send( serverSettings, message ) { | ||
console.log( message ); | ||
// we stash the 'https' module on a local variable, IF the server is deployed using SSL. | ||
@@ -118,3 +116,3 @@ // Otherwise the 'http' module is stashed | ||
@param {String} settings.masterSecret - The Master Secret | ||
@param {Object} [settings.simple-push] - an object containing simple-push criteria | ||
@param {String} [settings.simple-push] - simplePush version number | ||
@param {Number} [settings.ttl] - the time to live in seconds. This value is supported by APNs and GCM Only | ||
@@ -121,0 +119,0 @@ @param {Object} [settings.criteria={}] - the criteria to select |
{ | ||
"name": "aerogear-sender-client", | ||
"version": "0.2.0", | ||
"version": "0.3.0", | ||
"description": "Sender api for the AeroGear Unified Push server", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/aerogear/aerogear-unifiedpush-nodejs-client", |
@@ -48,3 +48,3 @@ # aerogear-sender-client [![Build Status](https://secure.travis-ci.org/aerogear/aerogear-unifiedpush-nodejs-client.png?branch=master)](https://travis-ci.org/aerogear/aerogear-unifiedpush-nodejs-client) | ||
Send a Selective Message | ||
Send a Message | ||
@@ -51,0 +51,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4778
127967