2
votes

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.stack.imgur.com/6tbFm.png

1
Yes. But i didn't registered in Windows dev center & create an app in Windows Store. I started directly creating a notification hub.San

1 Answers

2
votes

You need to configure the Windows(WNS) under Notification Settings first. You can follow this document(https://docs.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