mirror of
https://gitlab.silvrtree.co.uk/martind2000/SODashServer.git
synced 2025-02-14 05:49:19 +00:00
Apple Push notifications. Trying something else. again
This commit is contained in:
parent
3a74998f51
commit
ddb2290ad8
@ -81,6 +81,8 @@ var officeController = function(neweventbus) {
|
|||||||
logger.debug(this.todaysList);*/
|
logger.debug(this.todaysList);*/
|
||||||
this.setupNextMeeting(todaysList);
|
this.setupNextMeeting(todaysList);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
this.mqtt = new mqttClient.mqttClient();
|
this.mqtt = new mqttClient.mqttClient();
|
||||||
|
|
||||||
//This.timer;
|
//This.timer;
|
||||||
@ -122,6 +124,12 @@ var officeController = function(neweventbus) {
|
|||||||
this.announceMeetingEnd(meeting);
|
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) {
|
officeController.prototype.sendiOSAPN = function(packet) {
|
||||||
@ -156,7 +164,7 @@ officeController.prototype.announceMeetingEnd = function(meeting) {
|
|||||||
dry_run: false
|
dry_run: false
|
||||||
});
|
});
|
||||||
|
|
||||||
this.sendiOSAPN(packet);
|
this.sendiOSAPN(packet);
|
||||||
|
|
||||||
sender.sendMessage(message.toJSON(), '', true, function(err, data) {
|
sender.sendMessage(message.toJSON(), '', true, function(err, data) {
|
||||||
if (!err) {
|
if (!err) {
|
||||||
|
Loading…
Reference in New Issue
Block a user