WP7 推送通知 - 电源管理
微软文档称,如果设备的电池电量严重不足,则应用程序将不会收到推送通知。如果电池电量低但不是严重低,则应用程序将仅收到原始通知。
在这两种情况下,收到 ErrorOccurred 事件,我们是否必须向用户显示一条错误消息,解释发生了什么。当电池电量低时显示错误消息可以吗?
Microsoft documentation says that if the battery power of the device is critically low then the app will not receive push notifications. If the battery power is low but not critically low then the app will receive only Raw notifications.
In these two cases an ErrorOccurred event is received, do we have to show an error message to the user explaining the what has happened. Is it fine displaying an error message when the battery level is low?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您没有在手机上收到消息,应用程序如何知道通知用户。即使它没有运行。
重新启动应用程序时,您应该始终检查(并在必要时重新建立)通道。
如果适合让用户知道存在问题并且现已修复。和/或之前的通知失败,那么您应该这样做。
If you're not receiving messages on the phone, how will the app know to inform the user. Even if it isn't running.
When restarting the app you shoudl always check (and if necessary re-establish) channels.
If it's appropriate to let the user know there was a problem and it has now been fixed. And/or that previous notifications failed then you should do so.