Search code examples
uwptoastwindows-11

UWP Toast Message not apearing in Windows 11


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 ?


Solution

  • It seems in latest windows 11 problem fixed