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

Ida Su 1 Reputation point
2023-10-19T08:58:18.3933333+00:00

1:Turn Off Notifications for My App in Settings;

2: Navigate to the following path = HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Notifications\Settings\myApp

3: Turn On Notifications for my App in Registry Editor, Enabled->REG_DWORD = 1;

4: Send Toast my app Msg using winrt::Windows::UI::Notifications::ToastNotifier interface;

5: There is nothing in my sytem notification center and without toast windows;

But ,If I Turn Off Notifications for My App in Settings and turn on it in Settings, it work or if I turn off Notifications for my App in Registry Editor and turn on it in Registry Editor,it work;

Totally if i turn off Notifications for My App in Settings and turn on it in registry editor,it does't work;

Thanks

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,458 questions
{count} votes