城市飞艇显示错误的 JSON 有效载荷
Urban Airship showing wrong JSON payload
我正在尝试从 Urban Airship 门户发送测试推送。我有设备的通道 ID,创建了 JSON 有效负载。然而,当我尝试发送时,它总是显示错误,抱歉,这看起来不像有效 JSON。下面是我的Payload数据,请帮帮我。
{
"audience": {
"ios_channel": "938a3a93-1a5f-466c-923b-827ef4b0a75b"
},
"notification": {
"aps": {
"alert": {
"body": "Sample",
"title": "Sample"
}
}
"ios": {
"badge": 3
}
},
"device_types": [
"ios"
]
}
有效,忘记逗号,可以用https://jsonlint.com表示
{
"audience": {
"ios_channel": "938a3a93-1a5f-466c-923b-827ef4b0a75b"
},
"notification": {
"aps": {
"alert": {
"body": "Sample",
"title": "Sample"
}
},
"ios": {
"badge": 3
}
},
"device_types": [
"ios"
]
}
我正在尝试从 Urban Airship 门户发送测试推送。我有设备的通道 ID,创建了 JSON 有效负载。然而,当我尝试发送时,它总是显示错误,抱歉,这看起来不像有效 JSON。下面是我的Payload数据,请帮帮我。
{
"audience": {
"ios_channel": "938a3a93-1a5f-466c-923b-827ef4b0a75b"
},
"notification": {
"aps": {
"alert": {
"body": "Sample",
"title": "Sample"
}
}
"ios": {
"badge": 3
}
},
"device_types": [
"ios"
]
}
有效,忘记逗号,可以用https://jsonlint.com表示
{
"audience": {
"ios_channel": "938a3a93-1a5f-466c-923b-827ef4b0a75b"
},
"notification": {
"aps": {
"alert": {
"body": "Sample",
"title": "Sample"
}
},
"ios": {
"badge": 3
}
},
"device_types": [
"ios"
]
}