Calling `AppNotificationManager.Default.Register()` throws COMException (0x00703FD)
Describe the bug
I've followed the quickstart for using application notifications
Exception:
System.Runtime.InteropServices.COMException (0x800703FD): Cannot create a stable subkey under a volatile parent key.
Steps to reproduce the bug
- Create new MAUI project
- Follow the quickstart for app notifications: https://learn.microsoft.com/en-gb/windows/apps/windows-app-sdk/notifications/app-notifications/app-notifications-quickstart
- Run project
Expected behavior
No exception and the notifications working properly.
Screenshots
No response
NuGet package version
Windows App SDK 1.3.2: 1.3.230602002
Packaging type
Unpackaged
Windows version
Windows 11 version 22H2 (22621, 2022 Update)
IDE
Visual Studio 2022
Additional context
Related: https://github.com/CommunityToolkit/WindowsCommunityToolkit/issues/4858
we have c# sample for app notification here https://github.com/microsoft/WindowsAppSDK-Samples/tree/main/Samples/Notifications/App. Can you please follow the sample to see whether you still have this issue.
Can you also check this: https://devblogs.microsoft.com/oldnewthing/20170525-00/?p=96225 if this helps.
Same issue on my side.
I've seen the same issue on a few users' boxes.
We have our app on about 40 machines, of which half a dozen show this issue. All the systems are configured identically, same version of everything.
We might see this issue in Windows App SDK 1.4.3 as well for many users.