[UWP]徽章编号更新问题 [英] [UWP] Badge number update issue

查看:87
本文介绍了[UWP]徽章编号更新问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我的徽章编号更新有问题。有时数字会更新,当我在移动屏幕上移动时,否则数字不会更新(我等了几分钟,没有任何事情发生)。有时它会立即更新。我这称之为更新
徽章编号:

I have problem with badge number update. Sometimes the number is updated, when I do some move on the mobilescreen, otherwise the number is not updated (I waited a few minutes and nothing happend). Sometimes it updates immediately. I call this to update the badge number:

BadgeUpdateManager.CreateBadgeUpdaterForApplication().Update(badgeNotification);

我可以强制执行磁贴更新吗?它取决于系统吗?

Can I enforce tile update or it depends on system? 

推荐答案

您好,

>>有时数字会更新,当我在移动设备上移动时,否则数字不会更新(我等了几分钟,没有任何事情发生)。

>>Sometimes the number is updated, when I do some move on the mobilescreen, otherwise the number is not updated (I waited a few minutes and nothing happend).

我想澄清更多细节,因为"有时会立即更新",无法告诉我们如何重现您的问题。

I want to clarify some more details since "Sometimes it updates immediately" cannot tell us how to reproduce your problem.

1。你何时何地称这一行:

1. When and where did you call this line:

BadgeUpdateManager.CreateBadgeUpdaterForApplication().Update(badgeNotification);

2. 您的设备和操作系统的内部版本号是什么? 

2. What's your device and it's OS build number? 

3。当您运行一些官方样本时,例如UWP示例: https://github.com/ Microsoft / Windows-universal-samples / tree / master / Samples / Notifications  或
Windows 8示例: https://code.msdn.microsoft.com/windowsapps/app-tiles-and-badges-sample-5fc49148 你能重现这种行为吗?我个人认为,如果你不能
重现这种行为,那么这意味着你的代码有一些问题。但是,如果你可以重现这一点,我想我们需要检查一些有关它的更多细节。然后我可以帮你报告问题。

3. When you run some official sample, for example UWP Sample:https://github.com/Microsoft/Windows-universal-samples/tree/master/Samples/Notifications Or Windows 8 Sample:https://code.msdn.microsoft.com/windowsapps/app-tiles-and-badges-sample-5fc49148 Can you reproduce this behavior? Personally I think if you cannot reproduce this behavior, then it means there are some problems on your code. But if you can reproduce this I think we need to check some more details about it. Then I can help you report the problem.

祝你好运,

Barry


这篇关于[UWP]徽章编号更新问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆