ToastNotificationManager.CreateToastNotifier()
crash the app if user change their username without signing out
#4981
Labels
Describe the bug
My app recently get a user report of crashing. After checking the log, I found it crashes in toast notification related apis. His pc was connected to a domain, and has its username changed, without manual rebooting / manual signing out his account. Some quick experiment found out that if you launch the app first then change your username, calling
ToastNotificationManager.CreateToastNotifier()
will throw exception.This is very corner case, but I think it should be documented (or don't throw exception). The majority of the WinRT api can still function normally in this case.
Steps to reproduce the bug
netplwiz
to do that)Expected behavior
No response
Screenshots
No response
NuGet package version
Windows App SDK 1.6.3: 1.6.241114003
Packaging type
Packaged (MSIX)
Windows version
No response
IDE
Visual Studio 2022
Additional context
Windows 11 23H2
The text was updated successfully, but these errors were encountered: