find back receive message form android

This commit is contained in:
zhangqinghe 2014-07-23 14:46:02 +08:00
parent ea685713db
commit bce9508ec5

View File

@ -85,6 +85,23 @@ JPushPlugin.prototype.receiveMessageIniOSCallback = function(data){
console.log("JPushPlugin:receiveMessageIniOSCallback"+exception);
}
}
JPushPlugin.prototype.receiveMessageInAndroidCallback = function(data){
try{
console.log("JPushPlugin:pushCallback--data:"+data);
var bToObj=JSON.parse(data);
var message = bToObj.message;
var extras = bToObj.extras;
console.log(message);
console.log(extras['cn.jpush.android.MSG_ID']);
console.log(extras['cn.jpush.android.CONTENT_TYPE']);
console.log(extras['cn.jpush.android.EXTRA']);
}
catch(exception){
console.log("JPushPlugin:pushCallback "+exception);
}
}
//
JPushPlugin.prototype.openNotificationInAndroidCallback = function(data){
try{