如何清除已发送的通知消息
我的项目中有一个工作通知部分。我想让用户禁用应用程序本身的通知。一旦用户选中此选项,我就会将图块图像和标题恢复到原始状态。即使这部分也能正常工作。 可以通过发送 0 来删除计数, 但我不明白如何删除已发送的消息,特别是:
<wp:BackContent> </wp:BackContent>
我尝试发送空消息,但它不起作用。知道如何清除磁贴上的此消息吗?
I've a working notifications part in my project. And I want to give user to disable notifications in app itself. Once user checks this option, I bring tile image and title to original state. Even this part works fine.
Count can be removed by sending 0,
But i didn't understand how to remove already sent message, esp:
<wp:BackContent> </wp:BackContent>
I tried sending empty message but it didn't work. Any idea, how to clear this message on tile?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
请参阅 AppHub 上的这篇文章:如何在推送通知后重置翻转的 Mango 磁贴?
See this post on the AppHub: How do I reset a flipping Mango Tile after push notification?
答案如下:
如果你想清除任何内容,需要发送“clear”。非常直观,但没有很好的记录。
Here is the answer:
Need to send "clear", if you want to clear anything. Very intuitive but not documented well.