Apple Push notifications. Trying something else. again

This commit is contained in:
Martin Donnelly 2016-04-29 14:15:44 +01:00
parent 3a74998f51
commit ddb2290ad8

View File

@ -81,6 +81,8 @@ var officeController = function(neweventbus) {
logger.debug(this.todaysList);*/
this.setupNextMeeting(todaysList);
});
this.mqtt = new mqttClient.mqttClient();
//This.timer;
@ -122,6 +124,12 @@ var officeController = function(neweventbus) {
this.announceMeetingEnd(meeting);
});
var timmy = setTimeout(function() {
var now = new Date();
this.announceMeetingEnd({uid: 'bob', summary: 'Test message - ' + now.toISOString()});
}.bind(this),60000);
};
officeController.prototype.sendiOSAPN = function(packet) {
@ -156,7 +164,7 @@ officeController.prototype.announceMeetingEnd = function(meeting) {
dry_run: false
});
this.sendiOSAPN(packet);
this.sendiOSAPN(packet);
sender.sendMessage(message.toJSON(), '', true, function(err, data) {
if (!err) {