Skip to content
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.

Commit

Permalink
Update PAYLOAD.md
Browse files Browse the repository at this point in the history
  • Loading branch information
TillaTheHun0 committed Aug 25, 2017
1 parent a747ec1 commit 19f07aa
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions docs/PAYLOAD.md
Original file line number Diff line number Diff line change
Expand Up @@ -1473,7 +1473,7 @@ Then send the follow JSON from APNS:

If you want the default sound to play upon receipt of push use this payload:

```
```javascript
{
"aps": {
"alert": "Test sound",
Expand All @@ -1492,11 +1492,11 @@ For instance the following JSON:

```javascript
{
"aps": {
"alert": "Test background push",
"content-available": 1
},
"notId": 1 // unique ID you generate
"aps": {
"alert": "Test background push",
"content-available": 1
},
"notId": 1 // unique ID you generate
}
```

Expand All @@ -1508,12 +1508,12 @@ However if you want your `on('notification')` event handler called but no notifi

```javascript
{
"aps": {
"data": "Test silent background push",
"moredata": "Do more stuff",
"content-available": 1
},
"notId": 2 // unique ID you generate
"aps": {
"data": "Test silent background push",
"moredata": "Do more stuff",
"content-available": 1
},
"notId": 2 // unique ID you generate
}
```

Expand Down Expand Up @@ -1542,8 +1542,8 @@ push.on('notification', function(data) {
push.finish(function() {
console.log("processing of push data is finished");
}, function() {
console.log("something went wrong with push.finish for ID = " + data.additionalData.notId)
}, data.additionalData.notId);
console.log("something went wrong with push.finish for ID = " + data.additionalData.notId)
}, data.additionalData.notId);
});
```

Expand Down

0 comments on commit 19f07aa

Please sign in to comment.