【问题标题】:Can one Azure Mobile Service push notifications to Windows 8 and Windows Phone 8 apps?一项 Azure 移动服务能否将通知推送到 Windows 8 和 Windows Phone 8 应用?
【发布时间】:2013-11-14 21:36:44
【问题描述】:

我在商店中有一个使用 Azure 移动服务发送推送通知的 Windows 8 应用程序。我现在正在开发应用程序的 Windows Phone 8 版本,但我似乎无法让移动服务将通知推送到两个平台。 This page suggests that it's possible.

向 Windows Phone 发送推送时,我收到此错误“云服务无权向此 URI 发送通知,即使它们已通过身份验证。”

如果我从移动服务的推送设置中删除包 SID,则推送到手机可以正常工作,但不能推送到 Windows 8 应用。

这是支持的方案吗?有没有示例演示它?

谢谢!

【问题讨论】:

    标签: azure windows-8 windows-phone-8 azure-mobile-services


    【解决方案1】:

    我能够向使用相同后端移动服务的 Windows 应用商店和 WP8 应用程序发送通知。你能分享你用来向两个平台发送通知的代码吗?您收到的错误消息类似于来自 Windows 通知服务(http://msdn.microsoft.com/en-us/library/windows/apps/hh465435.aspx - 请参阅响应代码部分)的错误消息,而不是来自 Microsoft 推送(电话)通知服务的错误消息。

    另外,请确保您已将您的应用与应用商店相关联。有人在 Azure 移动服务论坛上发布了相同的错误消息,这就是原因。 http://social.msdn.microsoft.com/Forums/windowsazure/en-US/05b0ea71-f498-46bc-b6c0-16491b14ea99/error-in-push-notifications?forum=azuremobile

    请注意,您在 Azure 门户(在“推送”选项卡上)指定的包 SID 和客户端密码仅适用于 Windows 应用商店应用 - 移动服务目前不支持 WP8 的经过身份验证的通知。

    【讨论】:

    • 是的,我仍在尝试使用 wns 而不是 mpns 向手机发送原始通知。谢谢!
    猜你喜欢
    • 1970-01-01
    • 2014-02-26
    • 2014-06-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多