Share via

How do I configure a Notification Hub to send notifications to .NET Maui Windows app

Craig Wittenberg 0 Reputation points
2026-03-06T19:19:24.52+00:00

This all worked find for our Xamarin Windows UWP app which is still in the Windows Store.

TL;DR: per https://learn.microsoft.com/en-us/windows/apps/develop/notifications/push-notifications/push-quickstart .NET Maui for Windows push notifications requires that we pass the object id from an enterprise app registration (step 2, item 6). Azure Notification Hubs for WNS requires a SID. The app registration from Azure can be added to Partner Center, but there is no SID allocated to it.

We have successfully sent push notifications directly -- not using Notification Hubs. This verifies that we used the right object id in the app, got a pushChannel uri that was correct, authenticated with Entra to get the access token and sent the push and verified the app received it all per documentation.

The remaining bit is how to configure Notification Hubs.

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.

{count} votes

1 answer

Sort by: Most helpful
  1. Suchitra Suregaunkar 9,420 Reputation points Microsoft External Staff Moderator
    2026-03-06T20:21:34.78+00:00

    Hello @Craig Wittenberg@Craig Wittenberg

    Azure Notification Hubs cannot currently be used with .NET MAUI Windows (Windows App SDK) push notifications.

    .NET MAUI for Windows uses Windows App SDK push notifications, which are Entra ID (Azure AD)–based and require an App Registration Object ID. Azure Notification Hubs (WNS provider), on the other hand, still requires a Windows Store app identity (Package SID) issued via Partner Center.

    Because Windows App SDK push explicitly does not support Partner Center identities, there is no valid way to obtain a SID for a MAUI Windows app and therefore Notification Hubs cannot be configured for this scenario.

    Your Xamarin Windows UWP app worked because:

    • UWP apps are Store‑packaged
    • They are registered in Partner Center
    • Partner Center issues a Package SID
    • Azure Notification Hubs (WNS) uses that SID + secret

    .NET MAUI Windows apps are built on the Windows App SDK, and push notifications work very differently:

    • Push notifications use Entra ID (Azure AD) app registrations
    • The app uses Application (Client) ID, Tenant ID and Service principal Object ID
    • The Object ID is passed to CreateChannelAsync
    • Partner Center is not supported.

    User's image Reference: https://learn.microsoft.com/en-us/windows/apps/develop/notifications/push-notifications/push-quickstart#configure-your-apps-identity-in-azure-active-directory-aad

    This is why you can successfully create a push channel, send notifications directly via WNS and authentication via Entra ID works

    Your direct-send validation confirms the setup is correct.

    Azure Notification Hubs for WNS is built on the legacy WNS identity model.

    For a MAUI Windows app:

    • You cannot use Partner Center
    • No SID is generated
    • An Entra ID App Registration does not have a SID
    • Adding the app registration to Partner Center does not generate one

    So there is no compatible identity that Notification Hubs can accept.

    The supported resolution is to send push notifications directly via WNS using an Entra ID app registration.

    You can also provide feedback at https://feedback.azure.com/d365community

    Just checking if the information provided was helpful! Please let me know if you have any queries.

    Thanks,

    Suchitra.

    0 comments No comments

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.