|
|
@ -10,6 +10,7 @@ var fs = require('fs'); |
|
|
|
var path = require('path'); |
|
|
|
var Utils = require('./common/utils'); |
|
|
|
var Model = require('./model'); |
|
|
|
var sjcl = require('sjcl'); |
|
|
|
var log = require('npmlog'); |
|
|
|
log.debug = log.verbose; |
|
|
|
|
|
|
@ -122,7 +123,9 @@ PushNotificationsService.prototype._sendPushNotifications = function(notificatio |
|
|
|
opts.android = { |
|
|
|
"data": { |
|
|
|
"title": content.plain.subject, |
|
|
|
"message": content.plain.body |
|
|
|
"message": content.plain.body, |
|
|
|
"walletId": sjcl.hash.sha256.hash(notification.walletId), |
|
|
|
"notId": Math.floor(Math.random()*100000)+1 |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|