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.
295 questions
Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,706 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Deepanshukatara-6769 7,045 Reputation points
    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!