Using Azure Notification Hubs with WPF

Yuli Aria Winata 0 Reputation points
2024-02-19T03:22:08.82+00:00

Hello, I have a .NET 8, C# WPF application and would like to use Azure Notification Hub. My application should be able to run on Windows 10 or above. I've searched for resources, but all the tutorials I've found use Windows SDK/UWP/Win UI. Can I use Windows SDK with WPF? If not, is it possible to bundle unpackage Windows SDK/UWP/Win UI in a WPF application without linking it to Windows Store? Any advice would be appreciated. Thank you. Best regards, Yuli

Azure Notification Hubs
Azure Notification Hubs
An Azure service that is used to send push notifications to all major platforms from the cloud or on-premises environments.
Developer technologies | Windows Presentation Foundation
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Deepanshu katara 17,880 Reputation points MVP Moderator
    2024-02-19T07:59:57.0566667+00:00

    Hi , Regarding bundling Windows SDK/UWP/Win UI with a WPF application, it's generally not recommended because these frameworks are designed for specific platforms (UWP/Win UI for modern Windows apps) and might introduce unnecessary dependencies and complexities to your WPF application. It's better to stick with the .NET SDK for Azure Notification Hub or directly use HTTP requests as mentioned above. Please find some below links for more info https://learn.microsoft.com/en-us/azure/notification-hubs/ https://learn.microsoft.com/en-us/dotnet/api/overview/azure/notification-hubs?view=azure-dotnet https://learn.microsoft.com/en-us/azure/notification-hubs/notification-hubs-aspnet-backend-windows-dotnet-wns-secure-push-notification Please accept my answer , if it helps , Thankyou!


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.