4

UWP Toast notification is not displaying(appearing in front) in Windows 11 Beta

But same thing is working on Windows 10

Sample Code:

var toastNotifier = ToastNotificationManager.CreateToastNotifier();

ToastContent  content = new ToastContentBuilder()
                            .AddText(message)
                            .AddAppLogoOverride(new Uri(this.LogoUri))
                            .GetToastContent();

// Create the notification
ToastNotification toast = new ToastNotification(content.GetXml());
toast.ExpirationTime = DateTime.Now.AddSeconds(this.ToastDisplayTime);
toastNotifier.Show(toast);

Is Toast Notification Mechanism updated in windows 11 ?

deba
  • 87
  • 5
  • Currently Windows 11 is preview version, if you have any problem please feel free post it with windows feed back hub. – Nico Zhu Oct 05 '21 at 01:10

2 Answers2

5

I had this same problem.

It seems Windows 11 has Focus Assist enabled by default. To disable it or configure it, simply look for "Focus Assist" in Windows Settings.

Anzurio
  • 16,780
  • 3
  • 39
  • 49
0

It seems in latest windows 11 problem fixed

deba
  • 87
  • 5