Reputation: 65
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
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)
I have tested it on my side, after following all the steps in the document, it works fine.
Upvotes: 2