diff --git a/app.js b/app.js index 36c0366..9b86053 100644 --- a/app.js +++ b/app.js @@ -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); });