Merge pull request #452 from JDonadio/fix/click-push-notifications

WIP tap on notification
This commit is contained in:
Matias Alejo Garcia 2016-02-19 12:56:38 -03:00
commit dd809706f0
1 changed files with 4 additions and 1 deletions

View File

@ -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
}
};