【发布时间】:2016-01-18 13:48:33
【问题描述】:
我正在尝试使用 Lambda 函数向使用 SNS 的 iOS 设备发送通知,但每次发送通知时,端点的状态都会更改为 false,并且 CloudWatch 中会出现错误,提示令牌无效(下) .
我已确认该令牌与手机的令牌相同,并且正在发送给该令牌。我现在也尝试了3次重新生成证书,仍然出现同样的错误。
CloudWatch 错误
{
"status": "FAILURE",
"notification": {
"timestamp": "2015-10-20 03:27:46.5",
"messageId": "id",
"messageMD5Sum": "sum"
},
"delivery": {
"statusCode": 8,
"dwellTimeMs": 473,
"token": "f0b1abebdbc08d4f0c46a7a0620e518af886952c9f8e21e22cff5a5fc5ca5098",
"attempts": 1,
"providerResponse": "NotificationErrorResponse(command=8, status=InvalidToken, id=1, cause=null)",
"destination": "destination endpoint arn"
}
}
【问题讨论】:
标签: amazon-web-services amazon-sns