Browse Source

Merge pull request #480 from gabrielbazan7/feat/payloadPN

refactor ios payload structure
activeAddress
Matias Alejo Garcia 9 years ago
parent
commit
23801ff246
  1. 11
      lib/pushnotificationsservice.js

11
lib/pushnotificationsservice.js

@ -128,10 +128,15 @@ PushNotificationsService.prototype._sendPushNotifications = function(notificatio
"notId": Math.floor(Math.random() * 100000) + 1
}
};
opts.ios = {
"alert": content.plain.body,
"sound": "default"
"alert": {
"title": content.plain.subject,
"body": content.plain.body
},
"sound": "default",
"payload": {
"walletId": sjcl.hash.sha256.hash(notification.walletId)
}
};
return next(err, opts);
}, next);

Loading…
Cancel
Save