问题描述
有没有办法在 Windows Phone
上获取 Tile 通知
的当前计数并在本地更新它.如果我通过 push notification
/toast
读取了通知而没有从服务器端点击推送服务,我需要在本地更新 tile
计数.
Is there a way to get the current count of Tile notifications
on Windows Phone
and update it locally. 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.
比如说.我有 tile count
6. 一旦我收到推送通知并点击它,我希望 tile count
减少 1.我如何实现这个?
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?
推荐答案
很遗憾,您无法从 ShellTile
中读取信息.您只能更新它们.
Unfortunately you cannot read out information from a 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.
这篇关于获取磁贴通知计数 Windows 手机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!