Open HO-COOH opened 11 months ago
I tested in C# on Windows 10 22H2 with updateBadgeGlyph from MSDN and it does not seem to work either A workaround can be with ITaskbarList3::SetOverlayIcon A test on Windows 10 :
@castorix That good ol COM api is obviously proven to be working. However, you have to provide the HICON
instead of the windows built-in glyph, and it's hard to make it consistent with the design language.
This is bugging the "Your phone" app in windows 10. The number badge just disappear when the app is opened, and re-appear after it's closed.
UPDATE: This issue does not exist on Windows 11.
Describe the bug
I am using
Windows.UI.Notification.BadgeUpdateManager
api to add a badge to taskbar icon for a winui3 app, the badge does not appear in the taskbar icon until the window is closed. And it will disappear after it launches. In short, it seems that a winui3 app cannot show the badge when the app window is running.For UWP app however, badge will appear as soon as the function is called.
Steps to reproduce the bug
Use following code
winrt::Windows::UI::Notifications::BadgeUpdateManager::CreateBadgeUpdaterForApplication().Update(MakeBadgeNotification(1)); //number badge winrt::Windows::UI::Notifications::BadgeUpdateManager::CreateBadgeUpdaterForApplication().Update(MakeBadgeNotification(L"alert")); //glyph badge