mirror of
https://gitlab.silvrtree.co.uk/martind2000/SODashServer.git
synced 2025-01-25 20:06:16 +00:00
Apple Push notifications.
This commit is contained in:
parent
9cea62ccc8
commit
2680bfe47a
2
app.js
2
app.js
@ -277,7 +277,7 @@ app.post('/api/v1/register/ios', function(req, res) {
|
|||||||
apnConnection.pushNotification(note, myDevice);*/
|
apnConnection.pushNotification(note, myDevice);*/
|
||||||
|
|
||||||
logger.warn('Sending Apple Notifications');
|
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) {
|
push.sendPush(iosTokens, data, function(result) {
|
||||||
logger.debug(result);
|
logger.debug(result);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user