【问题标题】:WNS - Tiles are delivered and Toasts notWNS - 交付瓷砖,不交付 Toasts
【发布时间】:2016-02-04 17:19:41
【问题描述】:

我对 Toast-Messages 的传递有一个大问题。瓷砖按预期交付。 我发送到设备的第一个 toast 消息(带有新的推送 URL)会得到一个带有

的响应头
X-WNS-NOTIFICATIONSTATUS: received
X-WNS-STATUS: received

但是吐司没有传送到设备上。

如果我再次发送 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>

我希望有人可以帮助我!

亲切的问候,

布鲁诺

【问题讨论】:

    标签: windows-phone-8 push-notification windows-phone-8.1 toast wns


    【解决方案1】:

    确保您首先将 appx 清单中的 Toast Capable 选项设置为 true。

    查看本文档的第 1 步:Enabling "Toast Notifications" for Windows 8 Store App 或此处的 Visual Studio 说明:Enabling "Toast Notifications" for Windows 8 Store App

    【讨论】:

    • 谢谢,我启用推送功能后它工作得很好!
    猜你喜欢
    • 1970-01-01
    • 2023-04-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-01-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多