mirror of
https://github.com/jpush/jpush-phonegap-plugin.git
synced 2025-01-19 05:22:57 +08:00
find back receive message form android
This commit is contained in:
parent
ea685713db
commit
bce9508ec5
@ -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{
|
||||
|
Loading…
Reference in New Issue
Block a user