summaryrefslogtreecommitdiff
path: root/examples/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'examples/index.js')
-rw-r--r--examples/index.js28
1 files changed, 13 insertions, 15 deletions
diff --git a/examples/index.js b/examples/index.js
index 10bcbd7..15de909 100644
--- a/examples/index.js
+++ b/examples/index.js
@@ -90,26 +90,24 @@ var app = okcms.createApp({
lib: require("./lib/okpush"),
mongodbUrl: "mongodb://localhost/okpush_example",
apn: {
+ cert: path.join(__dirname, "./lib/okpush/test_certs/overlayer_dev_cert.pem"),
+ key: path.join(__dirname, "./lib/okpush/test_certs/overlayer_dev_key.pem"),
connection: {
gateway: "gateway.sandbox.push.apple.com",
- cert: "/path/to/cert.pem",
- key: "/path/to/key.pem"
- },
- feedback: {
- address: "feedback.sandbox.push.apple.com",
- cert: "/path/to/cert.pem",
- key: "/path/to/key.pem",
- interval: 43200,
- batchFeedback: true
}
},
+ bundleId: "us.okfoc.overlayer",
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>";
+ // expiry (in seconds)
+ // badge (int)
+ // alert (message)
+ // payload (raw json)
+ hub: {
+ alert: "The hub has been updated.",
+ },
+ store: {
+ alert: "The store is now open.",
+ },
}
},
},