Registering the Windows 8 (Desktop and Tablet) Client

Register and enable your Windows 8 (desktop and tablet) devices to receive push notifications.

Prerequisites
Task
  1. To obtain the channel URI, register the application with WNS. See Push notification overview (Windows Store apps) on the Windows Dev Center Web site.
  2. Check the WnsPushEnable value returned from the registration, and continue with the rest of the WNS or notification registration processing only if the value is true. Set the WnsChannelURI value received from the application.
  3. Update the application connection settings with the registration ID:
    https://host:port/odata/applications/{latest|v1/}{appid}/Connections/('{appcid}')
    Method : PUT
    HTTP Headers "Content-Type" = "application/atom+xml" and "X-HTTP-METHOD" = "PUT"
    Body:
    <entry xmlns="http://www.w3.org/2005/Atom" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices">
      <content type="application/xml">
        <m:properties>
          <d:WnsChannelURI>{WNS Channel URI}</d:WnsChannelURI>
        </m:properties>
      </content>
    </entry>