diff options
Diffstat (limited to 'examples/index.js')
| -rw-r--r-- | examples/index.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/examples/index.js b/examples/index.js index 357ff60..10bcbd7 100644 --- a/examples/index.js +++ b/examples/index.js @@ -102,6 +102,14 @@ var app = okcms.createApp({ interval: 43200, batchFeedback: true } + }, + notifications: { + note.expiry = Math.floor(Date.now() / 1000) + 3600; // Expires 1 hour from now. + note.badge = 3; + note.sound = "ping.aiff"; + note.alert = "\uD83D\uDCE7 \u2709 You have a new message"; + note.payload = {'messageFrom': 'John Appleseed'}; + note.topic = "<your-app-bundle-id>"; } }, }, |
