From 1e7740f9be0cf929c13f0cfd99d9c53f3a9af66e Mon Sep 17 00:00:00 2001 From: Martin Donnelly Date: Fri, 29 Apr 2016 11:21:39 +0100 Subject: [PATCH] Apple Push notifications. Trying something else. again --- app.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app.js b/app.js index 0233733..2b6a72f 100644 --- a/app.js +++ b/app.js @@ -269,6 +269,11 @@ app.post('/api/v1/register/ios', function(req, res) { logger.info('Sending the same notification each of the devices with one call to pushNotification.'); var note = new apn.notification(); note.setAlertText('Hello, from node-apn!'); + note.setAlertTitle('Smart Office'); + note.setBadge(1); + note.setSound('dong.aiff'); + + note.badge = 1; apnService.pushNotification(note, iosTokens);