楼主请问解决了吗,我也遇到同样的问题,恼火。
{
"validate_only": false,
"message": {
"androidConfig": {
"biTag": "",
"category": "",
"collapseKey": -1,
"data": "{\"appcode\":\"com.leagsoft.emm\",\"title\":\"test\",\"type\":\"system\",\"content\":\"hahahaha\"}",
"fastAppTargetType": 0,
"notification": {
"autoCancel": true,
"autoClear": 0,
"badge": null,
"bigBody": "hahahaha",
"bigTitle": "test",
"body": "",
"bodyLocArgs": [],
"bodyLocKey": "",
"buttons": [],
"channelId": "",
"clickAction": {
"action": "",
"intent": "intentcom.leagsoft.emm://com.huawei.codelabpush/deeplink?param=",
"richResource": "",
"type": 1,
"url": ""
},
"color": "",
"foregroundShow": false,
"group": "",
"icon": "http://pic.qiantucdn.com/58pic/12/38/18/13758PIC4GV.jpg",
"image": "",
"importance": "NORMAL",
"inboxContent": [],
"lightSettings": null,
"localOnly": false,
"multiLangKey": {
"key1": {
"en": "My name is %s, I am from %s."
},
"key2": {}
},
"notifyId": 0,
"notifySummary": "hahahaha",
"sound": "",
"style": 1,
"tag": "",
"ticker": "",
"title": "",
"titleLocArgs": [],
"titleLocKey": "",
"useDefaultLight": false,
"useDefaultVibrate": false,
"vibrateConfig": [],
"visibility": "PUBLIC",
"when": ""
},
"ttl": "10000s",
"urgency": "NORMAL"
},
"apns": null,
"condition": "",
"data": "{\"appcode\":\"com.leagsoft.emm\",\"title\":\"test\",\"type\":\"system\",\"content\":\"hahahaha\"}",
"notification": {
"body": "hahahaha",
"image": "",
"title": "test"
},
"token": [
"0866954032246333300008170800CN01"
],
"topic": "",
"webpush": null
}
}
这是我的参数