【发布时间】:2019-10-26 19:08:44
【问题描述】:
iOS 应用程序请求 Token 并将其发送到 python API。我将它作为设备令牌添加到 AWS API 并订阅主题。
然后尝试发送推送通知,我收到“DeviceTokenNotForTopic”这样的错误:
{
"notification": {
"messageMD5Sum": "71f457fe91ebc62efdce2acc25406ec8",
"messageId": "6124ef9c-860d-561a-94fa-b98e2392fd2a",
"topicArn": "arn:aws:sns:us-west-2:XXXXXXXXXXXX:all",
"timestamp": "2019-10-05 14:06:23.427"
},
"delivery": {
"deliveryId": "................",
"destination": "...............",
"providerResponse": "{\"reason\":\"DeviceTokenNotForTopic\"}",
"dwellTimeMs": 145,
"attempts": 1,
"token": "............",
"statusCode": 400
},
"status": "FAILURE"
}
【问题讨论】:
标签: python amazon-web-services push-notification apple-push-notifications amazon-sns