.NET 8 MAUI and Azure Notification Hub configuration is not working

Enrico Rossini 176 Reputation points
2024-02-03T10:25:32.05+00:00

In my .NET 8 MAUI application, I like to add push notifications. I started with what I was thinking it was the most simple, Windows. So, from the Windows Developer Portal, I copied the Package SID.

enter image description here

In Azure, I created a new Notification Hub. Under `WNS/MPNS, there is a link that is not working. enter image description here

So, I created manually in the Azure App Registration my app and created a new secret under Certificates and Secrets. When I tried to add those information in the Windows section, I get this error

{"error":{"code":"BadRequest","message":"Invalid WNS credentials."}}

enter image description here

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.
264 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,900 questions
{count} vote

1 answer

Sort by: Most helpful
  1. Ryan Hill 25,981 Reputation points Microsoft Employee
    2024-02-06T19:53:45.6033333+00:00

    Hey @Enrico Rossini

    Unfortunately, my account is restricted and therefore, could not step though Send notifications to Universal Windows Platform apps using Azure Notification Hubs | Microsoft Learn to confirm the issue. What I can suggest is try creating a new app in Developer Center and seeing that Package ID and Security Key is successful. If not, then you'll have to reach out to http://aka.ms/storesupport to submit an incident with Microsoft Partner Centre.

    User's image

    I have reached out to the team regarding this matter to see if there are any insights.


    EDIT 9 Feb 2024 I got my account unrestricted and was successfully able to register my store app with Notification Hub. I suggest generating a new application secret in https://apps.dev.microsoft.com/ to see if that resolves your issue.

    0 comments No comments