Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
miqmago committed Oct 23, 2016
1 parent 130e2c6 commit 37db600
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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,
}
```

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit 37db600

Please sign in to comment.