From 37db600f62404bb9617a65b77029b5caed49fe4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miquel=20Mart=C3=ADn?= Date: Sun, 23 Oct 2016 11:33:38 +0200 Subject: [PATCH] Update docs --- README.md | 7 +++++-- package.json | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index ce49ee6..ab15687 100644 --- a/README.md +++ b/README.md @@ -108,7 +108,7 @@ const data = { bodyLocArgs: '', // gcm, apn titleLocKey: '', // gcm, apn titleLocArgs: '', // gcm, apn - retries: 1, // apn + retries: 1, // gcm, apn encoding: '', // apn badge: 2, // gcm for ios, apn sound: 'ping.aiff', // gcm, apn @@ -124,7 +124,8 @@ const data = { mdm: '', // apn and gcm for ios urlArgs: '', // apn and gcm for ios truncateAtWordEnd: true, // apn and gcm for ios - expiry: , + mutableContent: 0, // apn + expiry: Math.floor(Date.now() / 1000) + 28 * 86400, // seconds timeToLive: 28 * 86400, // if both expiry and timeToLive are given, expiry will take precedency headers: [], // wns launch: '', // wns @@ -244,6 +245,8 @@ The following parameters are used to create an APN message: mdm: data.mdm, urlArgs: data.urlArgs, truncateAtWordEnd: data.truncateAtWordEnd, + collapseId: data.collapseKey, + mutableContent: data.mutableContent || 0, } ``` diff --git a/package.json b/package.json index d6a315a..3a8a790 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "node-pushnotifications", "description": "A cross-platform push service for node.js", - "version": "1.0.9", + "version": "1.0.10", "author": { "name": "AppFeel", "email": "info@appfeel.com"