|
| 1 | +--- |
| 2 | +title: Windows notifications overview |
| 3 | +description: Understand which Windows notification API to use for your app type—AppNotificationManager (Windows App SDK) vs ToastNotificationManager (WinRT/UWP)—and choose the right delivery method. |
| 4 | +ms.topic: overview |
| 5 | +ms.date: 03/19/2026 |
| 6 | +keywords: toast, notification, AppNotificationManager, ToastNotificationManager, WNS, push notification, Windows App SDK |
| 7 | +ms.localizationpriority: medium |
| 8 | +--- |
| 9 | + |
| 10 | +# Windows notifications overview |
| 11 | + |
| 12 | +Windows provides several notification APIs across different SDK generations. If you're searching online for how to send a notification and finding conflicting examples, this page will help you pick the right API for your app. |
| 13 | + |
| 14 | +## Which API should I use? |
| 15 | + |
| 16 | +The answer depends on which SDK your app targets: |
| 17 | + |
| 18 | +| App type | Recommended API | Namespace | |
| 19 | +|---|---|---| |
| 20 | +| WinUI 3 / Windows App SDK (new apps) | `AppNotificationManager` | `Microsoft.Windows.AppNotifications` | |
| 21 | +| WPF, WinForms, or unpackaged Win32 | `AppNotificationManager` via NuGet | `Microsoft.Windows.AppNotifications` | |
| 22 | +| UWP (existing apps, no migration planned) | `ToastNotificationManager` | `Windows.UI.Notifications` | |
| 23 | + |
| 24 | +> [!IMPORTANT] |
| 25 | +> Most Stack Overflow answers and older tutorials use `ToastNotificationManager` from the `Windows.UI.Notifications` namespace. This is the **UWP WinRT API**. It works in UWP apps and may work in some desktop scenarios, but it is not the recommended path for new Windows App SDK apps. Use `AppNotificationManager` for new development. |
| 26 | +
|
| 27 | +## Notifications API comparison |
| 28 | + |
| 29 | +| Feature | `AppNotificationManager` (Windows App SDK) | `ToastNotificationManager` (WinRT) | |
| 30 | +|---|---|---| |
| 31 | +| **Recommended for** | WinUI 3, WPF, WinForms, unpackaged Win32 | UWP | |
| 32 | +| **NuGet package** | `Microsoft.WindowsAppSDK` | None (inbox) | |
| 33 | +| **Package identity required** | No (works packaged and unpackaged) | Required for some features | |
| 34 | +| **Push integration** | `PushNotificationManager` (Windows App SDK) | WNS channel APIs (`Windows.Networking.PushNotifications`) | |
| 35 | +| **Active development** | Yes | Maintenance only | |
| 36 | + |
| 37 | +## Types of notifications |
| 38 | + |
| 39 | +Once you've chosen the right API, decide how your notification will be delivered: |
| 40 | + |
| 41 | +| Type | Description | Use when | |
| 42 | +|---|---|---| |
| 43 | +| **Local app notification** | Triggered directly by your app code while running | You want to alert the user of an in-app event | |
| 44 | +| **Scheduled** | Set a future time for the notification to appear | Calendar reminders, alarms | |
| 45 | +| **Push (WNS)** | Sent from your cloud service via Windows Push Notification Services | Chat messages, breaking news, real-time updates | |
| 46 | +| **Badge** | Small overlay on the app's taskbar icon | Unread count, status indicator | |
| 47 | + |
| 48 | +For a full breakdown of delivery methods, see [Choose a notification delivery method](choosing-a-notification-delivery-method.md). |
| 49 | + |
| 50 | +## Next steps |
| 51 | + |
| 52 | +**Building a WinUI 3 or Windows App SDK app?** |
| 53 | +- [App notifications overview](app-notifications/index.md) — local and push app notifications using `AppNotificationManager` |
| 54 | +- [App notifications quickstart](app-notifications/app-notifications-quickstart.md) |
| 55 | +- [Push notifications overview](push-notifications/index.md) — WNS push using `PushNotificationManager` |
| 56 | + |
| 57 | +**Building or maintaining a UWP app?** |
| 58 | +- [Send a local app notification from C++ UWP apps](app-notifications/send-local-toast-cpp-uwp.md) |
| 59 | +- [Windows Push Notification Services (WNS) overview](push-notifications/wns-overview.md) |
| 60 | + |
| 61 | +**Migrating a UWP app to Windows App SDK?** |
| 62 | +- [Migrate toast notifications](../../windows-app-sdk/migrate-to-windows-app-sdk/guides/toast-notifications.md) |
| 63 | +- [Migrate push notifications](../../windows-app-sdk/migrate-to-windows-app-sdk/guides/notifications.md) |
0 commit comments