windows-phone-8 - WNS - 已交付瓷砖但未交付 Toast

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

我在传递 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/

相关文章:

ios - APNS开放连接的含义

c# - 从网络源下载字节数

c# - 修改Textbox FontFamily在windows phone 8.1不生效

音轨结束时奇怪的音频 "tick sound"

c# - LonglistSelector 在降低其高度时无法滚动到最后一项

windows-phone-8 - 找不到文件 'Windows.props'

c# - WP8 照片相机源,旋转 Video rush 时被拉伸(stretch)

c# - 适用于 Windows Phone 8 的 IsolatedStorageFile 或 Windows.Storage API?

android - 应用程序被杀死后推送通知

django - 如何将 Google Cloud Messaging 与 Django 结合使用