每当我尝试向诺基亚 WP7 设备发送推送通知时,都会收到此错误。
其他推送 URI 不会返回此错误,但对于此错误,每次尝试都失败,即使手机“醒着”并且打开了 wi-fi。
检查 MSDN 文档,我来到了这个:
http://msdn.microsoft.com/en-us/library/ff941100(v=vs.92).aspx
The device is in an inactive state. The web service may re-attempt sending the request one time per hour at maximum after receiving this error. If the web service violates the maximum of one re-attempt per hour, the Push Notification Service will de-register or permanently block the web service."
这没有多大帮助,因为我所能做的就是尊重“1 小时后重试”并再次尝试发送。
我怀疑这可能与从未安装 SIM 卡的设备有关,因此无法“激活”,但是,如果这是真的,为什么 MSPN 会返回应用程序的推送 URI?
提前致谢
最佳答案
我注意到 Microsoft 经常为设备生成一个新的 ChannelUri(在过去 2 天,我的 2 台设备有 5 个 channel uri)
可能已经为设备生成了新的 channeluri。
关于windows-phone-7 - 如何处理 HTTP 412(前提条件失败) - 设备处于非事件状态,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9839284/