MDM服务器推入Windows Phone 8.1 [英] MDM server push in windows phone 8.1

查看:101
本文介绍了MDM服务器推入Windows Phone 8.1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据Microsoft提供的Windows Phone 8.1 MDM协议文档,启用MDM服务器推送,以便设备开始轮询。但是我对MDM服务器如何使用WNS启动推送感到有点困惑? 


文档在第50页有以下行, 



  • 为了启动设备管理会话,管理服务器必须首先使用其SID和客户端密钥对WNS进行身份验证。
  • 一旦通过身份验证,服务器将收到可以使用的令牌为任何ChannelURI发起原始推送通知。
  • 当管理服务器希望启动与设备的设备管理会话时,它可以利用其令牌和设备的ChannelURI并开始与设备通信。

获取访问令牌的请求有以下参数:































参数

必填/可选

描述

grant_type

必需

必须设置为"client_credentials"。

client_id

必需

当您已注册
你的应用程序
与Windows商店。

client_secret

必需

当你指定的云服务的密钥时,已注册
你的应用程序
与Windows商店。

范围

必需

必须设置为:

  • Windows :" notify.windows.com"
  • Windows Phone :" ; notify.windows.com"或"s.notify.live.net"



但是,


1]如何检索SID和客户端密钥?


2]如何检索渠道uri?

解决方案

这是一篇描述WNS系统的文章,并解释了如何获得SID,客户端密码和渠道uri:


http:// blogs.msdn.com/b/wsdevsol/archive/2012/10/04/walkthrough-creating-an-iis-server-to-use-with-wns-push-notifications-and-windows-store-apps.aspx


According to windows phone 8.1 MDM protocol document provided by Microsoft, MDM server push is enabled so that device starts polling. But I am bit confused about how MDM server can initiate push using WNS? 

Document has following lines at page 50, 

  • In order to initiate a device management session, the management server must first authenticate with WNS using its SID and client secret.
  • Once authenticated, the server will receive a token that it can use to initiate a raw push notification for any ChannelURI.
  • When the management server wishes to initiate a device management session with a device, it can utilize its token and the device’s ChannelURI and begin communicating with the device.

Request for getting access token has following paramaeters:

Parameter Required/Optional Description
grant_type Required Must be set to "client_credentials".
client_id Required Package security identifier (SID) for your cloud service as assigned when youregistered your app with the Windows Store.
client_secret Required Secret key for your cloud service as assigned when you registered your app with the Windows Store.
scope Required Must be set to:
  • Windows: "notify.windows.com"
  • Windows Phone: "notify.windows.com" or "s.notify.live.net"

But,

1] how to retrive SID and client secret ?

2] how to retrieve channel uri?

解决方案

Here's an article which describes the WNS system:, and explains how you get the SID, client secret, and channel uri:

http://blogs.msdn.com/b/wsdevsol/archive/2012/10/04/walkthrough-creating-an-iis-server-to-use-with-wns-push-notifications-and-windows-store-apps.aspx


这篇关于MDM服务器推入Windows Phone 8.1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆