向iOS用户发送通知时,对于其中一些用户,我获得响应状态码400(BadDeviceToken)或代码410(未注册)。获取APN响应BadDeviceToken或Unregistered的可能原因是什么?
从苹果文档中关于 “BadDeviceToken”:
The specified device token was bad. Verify that the request contains a valid token and that the token matches the environment.
什么是 “坏” 的含义?我知道设备标记在某个较早的时间有效。用户做什么来使其设备令牌不好?
大约从 “未注册” 的文件:
The device token is inactive for the specified topic.
这是否necceserally意味着应用程序已被删除?或者可能还有其他一些原因。
希望它能帮助你:[http://stackoverflow.com/questions/6652242/does-the-apns-device-token-ever-change-once-created/34007364#34007364](http://stackoverflow .com/questions/6652242/do-the-apns-device-token-ever-change-once-created/34007364#34007364) – tofucodes
@Shai Givati CHECK THIS-:http://stackoverflow.com/questions/40303787/sending -an-apn-returns-baddevicetoken-what-should-devicetoken -format-be –