WP7 推送通知通道数量限制
在 Microsoft 文档中提到“每个应用程序有一个推送通知通道的限制。每个设备也有 15 个推送通知通道的限制。如果您的应用程序超出其中任何一个限制,则会出现 InvalidOperationException(超出通道配额)异常会被扔掉。”
我对此的理解是,如果用户已经安装了 15 个使用推送通知的应用程序,并且如果他安装了我的应用程序(也使用推送通知作为第 16 个应用程序),则将引发 InvalidOperationException(超出频道配额)。
但我不知道我们必须在代码中的哪里捕获这个异常。有人可以建议吗?
In Microsoft documentation it is mentioned that "There is a limit of one push notification channel per application. There is also a limit of 15 push notification channels per device. If your application exceeds either of these limits, an InvalidOperationException(Channel quota exceeded) exception will be thrown.".
I understand this as If the user has already installed 15 apps that use push notifications and if he installs my app which also uses push notifications as 16th one, then InvalidOperationException(Channel quota exceeded) will be thrown.
But I have no idea where we have to catch this exception in the code. Can anyone suggest?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
此链接提供了大量有关使用推送通知的信息。
http://windowsteamblog.com/windows_phone/b/wpdev/archive/2010/05/06/using-push-notification-from-your-windows-phone-application.aspx
我认为您在尝试创建通道时需要捕获异常。
This link gives alot of information about using the pushnotifications.
http://windowsteamblog.com/windows_phone/b/wpdev/archive/2010/05/06/using-push-notification-from-your-windows-phone-application.aspx
I think you need to catch the exception when trying to create the channel.