How to show app toast after turn on app notification using registry editor

Ida Su 1 Reputation point
2023-10-19T08:43:21.0066667+00:00

System : windows11 22H2 22621.2428

1: Turn Off Notifications for My App in Settings,

2: Next, navigate to the following path =[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\MyApp],

3: Turn On App Notifications using Registry Editor (Enabled ->REG_DWORD = 1),

4: My App Send toast using winrt::Windows::UI::Notifications::ToastNotifier interface;

After that ,there is nothing in my system notification center and no show toast.

But If I turn off notifications in setting and turn on in setting, it is work;

if I turn off notifications in registry editor and trun on in registry editor ,it is work;

if I turn off notifications in setting and trun on in registry editor , it doesn't work;

Thanks

Microsoft Security | Intune | Application management
Windows for business | Windows Server | User experience | Other
Windows for business | Windows Client for IT Pros | User experience | Other
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.