Skip to content

ToastNotificationManagerCompat Remove by Tag #4429

Discussion options

You must be logged in to vote

Hi @Daniellled, yes, that class is obsolete and the replacement class is ToastNotificationManagerCompat. Here's the docs for using it: https://docs.microsoft.com/windows/apps/design/shell/tiles-and-notifications/send-local-toast?tabs=desktop

(It looks like you were also using some unofficial staging docs rather than docs.microsoft.com as linked above)

ToastNotificationManagerCompat will work fully from unpackaged apps :)

And if you want an example of how to handle toast activation from a WinUI 3 app, we have toasts functioning in the Windows App SDK Gallery app, here's the source for that: https://github.com/andrewleader/WindowsAppSDKGallery/blob/main/WindowsAppSDKGallery/App.xaml.cs#L60

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@michael-hawker
Comment options

Comment options

You must be logged in to vote
2 replies
@Daniellled
Comment options

@andrewleader
Comment options

Answer selected by andrewleader
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment