Apple Push notifications.

This commit is contained in:
Martin Donnelly 2016-04-29 10:29:15 +01:00
parent 9cea62ccc8
commit 2680bfe47a

2
app.js
View File

@ -277,7 +277,7 @@ app.post('/api/v1/register/ios', function(req, res) {
apnConnection.pushNotification(note, myDevice);*/
logger.warn('Sending Apple Notifications');
data = {title: 'New push notification' , message: 'Powered by Martin', otherfields: 'optionally add more data'};
var data = {title: 'New push notification' , message: 'Powered by Martin', otherfields: 'optionally add more data'};
push.sendPush(iosTokens, data, function(result) {
logger.debug(result);
});