我在传递 Toast 消息时遇到了一个大问题。瓷砖按预期交付。 我发送到设备的第一条 toast 消息(使用新的推送 URL)会获得一个响应 header
X-WNS-NOTIFICATIONSTATUS: received
X-WNS-STATUS: received
但是 toast 未传送到设备。
如果我另一次发送 toast,Microsoft 的响应如下所示
X-WNS-NOTIFICATIONSTATUS: dropped
X-WNS-STATUS: dropped
X-WNS-ERROR-DESCRIPTION: Blocked channel URL
我的HTTP-Requsest看起来像这样:
网址:
https://db5.notify.windows.com/?token=AwYAAAC5SQWdpe....25osxgpm3dB3zTN8io2OPMUIRs%3d
标题:
Content-Length: 102
X-WNS-Type: wns/toast
Authorization: Bearer EgAZAQMAA...
Content-Type: text/xml
正文:
<toast>
<visual>
<binding template="ToastText01">
<text id="1">bodyText</text>
</binding>
</visual>
</toast>
我希望有人能帮助我!
亲切的问候,
布鲁诺
最佳答案
首先确保您已将 appx list 中的 Toast Capable 选项设置为 true。
检查本文档的第 1 步:Enabling "Toast Notifications" for Windows 8 Store App或此处的 Visual Studio 说明:Enabling "Toast Notifications" for Windows 8 Store App
关于windows-phone-8 - WNS - 已交付瓷砖但未交付 Toast,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33518034/