Azure - 推送通知 - 发送测试消息失败

Azure - Push Notifications - Failed to send test message

在 Azure 中,我创建了一个示例通知中心并尝试为 windows 发送测试 Toast 通知。我最终在 Azure 中出现以下异常。

发送测试消息失败。错误:{"readyState":4,"responseText":"{\"error\":{\"message\":\"Bad Request\",\"code\":\"BadRequest\"}}","responseJSON":{"error":{"message":"Bad Request","code":"BadRequest"}},"status":400,"statusText":"Bad Request"}.

[找截图参考] https://i.stack.imgur.com/6tbFm.png

您需要先在通知设置下配置 Windows(WNS)。你可以关注这个文档(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)

我已经在我这边进行了测试,在按照文档中的所有步骤进行操作后,它工作正常。