summaryrefslogtreecommitdiff
path: root/examples/index.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2016-10-05 17:49:19 -0400
committerJules Laplace <jules@okfoc.us>2016-10-05 17:49:19 -0400
commitae843591da0fea1a57684f26737be0b484718809 (patch)
tree547be3ae5d69c3568626a2f9ce9f35e034c82ed6 /examples/index.js
parent95df0e83fdb7f564d64b6c916e674e0db46c116d (diff)
okpush template stuff
Diffstat (limited to 'examples/index.js')
-rw-r--r--examples/index.js8
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>";
}
},
},