Adding Windows app notifications with the Windows App SDK
In this section, we’re going to add some local app notifications to the My Media Collection project. The code we’ll add to the project is based on the Windows App SDK local app notification sample app created by the Microsoft Learn team. You can download the code for that project on GitHub: https://github.com/microsoft/WindowsAppSDK-Samples/tree/main/Samples/Notifications/App/CsUnpackagedAppNotifications.
We are adding two buttons to the MainPage in the app to trigger two types of notifications. One will have an image and some text. The second will add a text entry field to demonstrate how we can receive input from a user in the notification toast and act on it within our application.
Note
There is a lot of configuration and code required to implement notification handling. If you would like to open the completed solution and follow along, the code is available on GitHub: https://github.com/PacktPublishing...