I am new in WinUI3. I want to know how can implement push notification scenario for Desktop Application in WinUI3. Previously I worked on UWP and also I got the sample that I have to register a background task for push notification. And when a raw notification is sent, my background task activated and I can show a toast notification.
I have found a sample and a guide, https://learn.microsoft.com/en-us/windows/apps/windows-app-sdk/migrate-to-windows-app-sdk/guides/notifications
https://github.com/microsoft/WindowsAppSDK-Samples/tree/main/Samples/Notifications/Push
But from sample of Winui3, I found a .cpp console application. I have to implement packaged application in C#. So how a raw notification will wake up my application? There is no background task. So how can i implement winui3 application in c# so that I can receive a raw notification even my application is in terminated state and show a toast notification.