0
iOS通过AWS SNS推送通知。 Payload在iOS设备通知面板中显示而不是消息。iOS通过AWS SNS推送通知
例如:
{
"default": "Sample message",
"APNS": {
"aps": {
"alert": {
"body": "You have new message",
"title": "Sample message"
}
}
}
}
iOS通过AWS SNS推送通知。 Payload在iOS设备通知面板中显示而不是消息。iOS通过AWS SNS推送通知
例如:
{
"default": "Sample message",
"APNS": {
"aps": {
"alert": {
"body": "You have new message",
"title": "Sample message"
}
}
}
}
问题是你一直aps
内APNS
。
按照苹果的文档,有效载荷应该是这样的,
{
"aps" : {
"alert" : {
"title" : "Game Request",
"body" : "Bob wants to play poker",
"action-loc-key" : "PLAY"
},
"badge" : 5
},
"acme1" : "bar",
"acme2" : [ "bang", "whiz" ]
}
注:“APS”应在按键可直接,你不应该将其括其他值内。
那么你的问题是什么? –