简体   繁体   English

在Windows Phone中显示待处理的推送通知计数

[英]Show pending push notification count in Windows Phone

I am creating an WebView app ie it contains only WebBrowser control which opens some enterprise mobile web app. 我正在创建一个WebView应用程序,即它仅包含WebBrowser控件,该控件可打开某些企业移动Web应用程序。 I am using Urban Airship for push notifications. 我正在使用Urban Airship进行推送通知。

Now I want to show the pending tile/toast notification count as badge on tile as well as on lock screen. 现在,我想将待处理的平铺/吐司通知计数显示为平铺以及锁定屏幕上的标志。 How do I perform that? 我该如何执行? Is there any event which occurs when notification is pushed, if yes how can I use to maintain the count? 推送通知时是否发生任何事件,如果可以,我如何使用它来维护计数? Can I use background task? 我可以使用后台任务吗? I am thinking to clear the badge when app is launched. 我想在启动应用程序时清除徽章。

I am totally new in push notifications for Windows Phone. 我在Windows Phone的推送通知中是全新的。 I searched a lot but didn't get expected results. 我搜索了很多,但没有得到预期的结果。

Get tile notifications count Windows phone 获取平铺通知计数Windows Phone

Count unreaded Number of missed call and message in windows phone 计数未读Windows电话中未接来电和消息的数量

Here is a good sample of tile notification in msdn . 这是msdn瓦片通知的一个很好的示例。 You don't even need a background agent for this task, it will be done by the system. 您甚至不需要后台代理即可完成此任务,它将由系统完成。 There is also a toast notification sample. 还有一个敬酒通知示例。

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

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