mirror of
https://github.com/jpush/jpush-phonegap-plugin.git
synced 2026-04-19 00:03:45 +08:00
find back receive message form android
This commit is contained in:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user