简体   繁体   English

获取平铺通知计数Windows Phone

[英]Get tile notifications count Windows phone

Is there a way to get the current count of Tile notifications on Windows Phone and update it locally. 有没有一种方法可以获取Windows Phone上的Tile notifications的当前计数并在本地对其进行更新。 I need to update the tile count locally if I have read a notification via push notification / toast without hitting the push service from the server end. 如果我已通过push notification / toast阅读了通知,而未从服务器端点击推送服务,则需要在本地更新tile计数。

Say for eg. 说例如。 I have the tile count 6. As soon as I receive a push notification and I click on it, I want the tile count to be reduced by 1. How do I achieve this? 我的tile count 6。收到推送通知并单击它时,我希望将tile count减少1。如何实现此目的?

Unfortunately you cannot read out information from a ShellTile . 不幸的是,您无法从ShellTile读取信息。 You can only update them. 您只能更新它们。

What you could do is saving the information of the counter or anything else on your server that pushes. 您可以做的是在服务器上保存计数器或其他任何信息。 It can preperate the notification as you wish. 它可以根据您的喜好准备通知。 I guess this is not the way you want to deal with it but it is the only way. 我想这不是您要处理的方法,而是唯一的方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM