From ef339a1b96095d8c2b0acf6f8bcb9fa8961907eb Mon Sep 17 00:00:00 2001 From: zhangqinghe Date: Wed, 10 Jun 2015 15:58:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3JPushPlugin.prototype.receive?= =?UTF-8?q?MessageInAndroidCallback=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- www/JPushPlugin.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/JPushPlugin.js b/www/JPushPlugin.js index 5c76432..a830f5e 100644 --- a/www/JPushPlugin.js +++ b/www/JPushPlugin.js @@ -147,7 +147,7 @@ JPushPlugin.prototype.receiveMessageInAndroidCallback = function(data){ try{ console.log("JPushPlugin:receiveMessageInAndroidCallback"); var bToObj = JSON.parse(data); - this.openNotification=bToObj + this.receiveMessage=bToObj cordova.fireDocumentEvent('jpush.receiveMessage',null); //console.log(data); //var message = bToObj.message; @@ -168,7 +168,7 @@ JPushPlugin.prototype.openNotificationInAndroidCallback = function(data){ try{ console.log("JPushPlugin:openNotificationInAndroidCallback"); var bToObj = JSON.parse(data); - this.receiveNotification=bToObj; + this.openNotification=bToObj; cordova.fireDocumentEvent('jpush.openNotification',null); //console.log(data);