Windows Phone 7 - 推送磁贴通知:清除推送磁贴?
感谢你们中的许多人,我终于掌握了如何推送 Toast 和 Title 通知。现在我已经将更新的标题推送到手机上,如何清除它?
我看到有一个 .UnbindToShellTile();
现在这导致了异常,但我可能没有把它放在正确的位置。
谢谢。
Thanks to many of you, I've finally gotten a handle on how to push Toast and Title notifications. Now that I have an updated Title pushed to the phone, how do I clear it?
I see that there is a .UnbindToShellTile();
Right now that is causing an exception, but I might not be putting it in the correct place.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以使用要返回的图像发出磁贴通知,并将计数传递为 0 以清除该通知(如果您发送了一张)。
来自Windows Phone 的推送通知类型
“成功更新后,背景图像将永远不会恢复到以前的版本,除非通过推送通知再次发送以前的背景图像。”
和
“如果 Count 值为已经显示在 Tile 中,您必须发送值 0 才能清除 Tile 中的 Count 图像和值。”
You can raise a tile notification with the image you want to return to and pass the count as 0 to clear that if you sent one.
From Types of Push Notifications for Windows Phone
"The background image will never revert to a previous version after it has been successfully updated, unless a previous background image is sent again with a push notification."
and
"if a Count value is already displayed in the Tile, you must send a value of 0 to clear the Count image and value from the Tile."
我在电话(芒果)上为我清理柜台做了什么工作:
Waht did work for me on the phone (Mango) for clearing the counter: