windows-phone-7 - 如何处理 HTTP 412(前提条件失败) - 设备处于非事件状态

标签 windows-phone-7 push-notification mpns

每当我尝试向诺基亚 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/

相关文章:

wcf - 保护游戏高分的解决方案

android - 从推送通知 IntentService 中发布时,Handler 中的 Runnable 不运行

windows-phone-7 - Windows Phone 7 中的推送通知问题

c# - Windows Phone 8 推送通知空 channel uri

silverlight - WP7 Silverlight 应用程序可扩展性

silverlight - Windows Phone 7 应用程序中的 Paypal

ios - 当应用程序处于推送通知状态时,没有调用 didreceiveremotenotification?

ios - 使用更新的框架解析在 iOS 9 构建中损坏的推送通知

c# - 在 C#、WP7 中将对象转换为 JSON 字符串