mirror of
https://github.com/jpush/jpush-phonegap-plugin.git
synced 2025-01-19 13:52:49 +08:00
修正JPushPlugin.prototype.receiveMessageInAndroidCallback的bug
This commit is contained in:
parent
0233a10906
commit
ef339a1b96
@ -147,7 +147,7 @@ JPushPlugin.prototype.receiveMessageInAndroidCallback = function(data){
|
|||||||
try{
|
try{
|
||||||
console.log("JPushPlugin:receiveMessageInAndroidCallback");
|
console.log("JPushPlugin:receiveMessageInAndroidCallback");
|
||||||
var bToObj = JSON.parse(data);
|
var bToObj = JSON.parse(data);
|
||||||
this.openNotification=bToObj
|
this.receiveMessage=bToObj
|
||||||
cordova.fireDocumentEvent('jpush.receiveMessage',null);
|
cordova.fireDocumentEvent('jpush.receiveMessage',null);
|
||||||
//console.log(data);
|
//console.log(data);
|
||||||
//var message = bToObj.message;
|
//var message = bToObj.message;
|
||||||
@ -168,7 +168,7 @@ JPushPlugin.prototype.openNotificationInAndroidCallback = function(data){
|
|||||||
try{
|
try{
|
||||||
console.log("JPushPlugin:openNotificationInAndroidCallback");
|
console.log("JPushPlugin:openNotificationInAndroidCallback");
|
||||||
var bToObj = JSON.parse(data);
|
var bToObj = JSON.parse(data);
|
||||||
this.receiveNotification=bToObj;
|
this.openNotification=bToObj;
|
||||||
cordova.fireDocumentEvent('jpush.openNotification',null);
|
cordova.fireDocumentEvent('jpush.openNotification',null);
|
||||||
|
|
||||||
//console.log(data);
|
//console.log(data);
|
||||||
|
Loading…
Reference in New Issue
Block a user