我使用" https://github.com/phonegap/phonegap-plugin-push"插件在我的离子应用程序中实现推送通知。
当"通知"事件被称为" /android_asset/www/cordova.js"文件。
[INFO:CONSOLE(312)] "Error in Success callbackId: PushNotification1569630827
: TypeError: Cannot read property 'info' of undefined", source:
file:///android_asset/www/cordova.js (312)
这是从"通知"推送的数据。事件
{
"sound": "notification",
"title": "Message from customer",
"message": "testtesttesttesttesttest",
"additionalData": {
"info": {
"merchantCode": 74071,
"name": "sudesh",
"chatSessionId": "lrzbeBImhK_Qws7qcEbjDAnBzrbXr5AVJFVrQlkZ",
"time": "Tue Mar 14 11:04:41 UTC 2017",
"title": "Message from customer",
"body": "testtesttesttesttesttest",
"type": "customer"
},
"dismissed": false,
"google.message_id": "0:1489489453397457%c71401d800000031",
"coldstart": false,
"collapse_key": "1",
"foreground": false
}
}
答案 0 :(得分:1)
试试这个
更改:
com.codename1.io.Log
至 :
WITH EXECUSE AS