Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

aerogear-sender-client

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aerogear-sender-client - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

12

example.js

@@ -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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc