mirror of
https://gitlab.silvrtree.co.uk/martind2000/SODashServer.git
synced 2025-03-13 10:00:02 +00:00
Apple Push notifications. Trying something else. again
This commit is contained in:
parent
db6cc3bdc3
commit
1e7740f9be
5
app.js
5
app.js
@ -269,6 +269,11 @@ app.post('/api/v1/register/ios', function(req, res) {
|
||||
logger.info('Sending the same notification each of the devices with one call to pushNotification.');
|
||||
var note = new apn.notification();
|
||||
note.setAlertText('Hello, from node-apn!');
|
||||
note.setAlertTitle('Smart Office');
|
||||
note.setBadge(1);
|
||||
note.setSound('dong.aiff');
|
||||
|
||||
|
||||
note.badge = 1;
|
||||
|
||||
apnService.pushNotification(note, iosTokens);
|
||||
|
Loading…
Reference in New Issue
Block a user