The Notification payload is invalid (WNS)

Cloud Edward 0 Reputation points
2023-11-13T11:37:04.88+00:00

I am not receiving messages from the test send. I followed all the points from the documentation: (https://learn.microsoft.com/en-us/azure/notification-hubs/notification-hubs-windows-store-dotnet-get-started-wns-push-notification) and successfully registered my application in WNS, but I always get an error:Screenshot 2023-11-13 133424

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.
326 questions
{count} votes

1 answer

Sort by: Most helpful
  1. brtrach-MSFT 16,586 Reputation points Microsoft Employee
    2023-11-16T04:34:42.74+00:00

    Thank you for providing more information. Based on the details you provided, it seems that the issue might be related to the token obtained from the token provider. Here are a few things you can try:

    Verify that the token provider is configured correctly in the Azure portal. You can check the connection string and the access policies for your notification hub.

    Make sure that the token provider is using the correct credentials to authenticate with the notification hub. You can verify this by checking the credentials in the respective push notification service developer portal.

    Check if there are any issues with the certificate used to sign your app package. If the certificate is invalid or has expired, it can cause issues with the token provider.

    Try using the EnableTestSend property again and see if it provides any additional information. You can also try using the Notification Hub REST API to send a test notification and see if it works.

    If none of these steps help, please let us know and we can investigate further.

    0 comments No comments

Your answer

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