From ae843591da0fea1a57684f26737be0b484718809 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Wed, 5 Oct 2016 17:49:19 -0400 Subject: okpush template stuff --- examples/index.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'examples/index.js') 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 = ""; } }, }, -- cgit v1.2.3-70-g09d2