San
San

Reputation: 65

Azure - Push Notifications - Failed to send test message

In Azure i have created a sample notification hub and tried to send test Toast notification for windows. And i ended up with below exception in Azure.

Failed to send test message. Error: {"readyState":4,"responseText":"{\"error\":{\"message\":\"Bad Request\",\"code\":\"BadRequest\"}}","responseJSON":{"error":{"message":"Bad Request","code":"BadRequest"}},"status":400,"statusText":"Bad Request"}.

[Find the screenshot for reference] https://i.sstatic.net/6tbFm.png

Upvotes: 2

Views: 1035

Answers (1)

Tony Ju
Tony Ju

Reputation: 15629

You need to configure the Windows(WNS) under Notification Settings first. You can follow this document(https://learn.microsoft.com/en-us/azure/notification-hubs/notification-hubs-windows-store-dotnet-get-started-wns-push-notification#configure-wns-settings-for-the-hub) enter image description here

I have tested it on my side, after following all the steps in the document, it works fine. enter image description here

Upvotes: 2

Related Questions