Setting up push notifications for Windows 8 Universal and Windows Phone 8 Universal

To set up push notifications for Windows 8 Universal and Windows Phone 8 Universal devices, you must use the Windows Push Notifications Service (WNS). In order to use WNS, you must have a valid Windows Store account.

Procedure

  1. Create a Windows Store account at Windows Dev Center Dashboard.
  2. Register your app with Windows Dev Center Dashboard and obtain the following credentials for your app.
    • Name
    • Publisher
    • Package Security Identifier (SID)
    • Client Secret

    For more information, see How to authenticate with the Windows Push Notification Service (WNS) (Windows Runtime apps).

  3. In the application-descriptor.xml file, for <windows8> (Windows 8 Universal) or for <windowsphoneuniversal> (Windows Phone 8 Universal), set the following attributes for the <pushSender> element.
    Attribute Setting
    appIdentityName The name of the package.
    appIdentityPublisher The subject name of the signing certificate.
    packageSID The unique identifier of your Windows Store app.
    clientSecret The secret key.
    Note: If the WNS credentials are set by using REST API, then the Name attribute and Publisher attribute of the <Identity> element must be set manually in the package manifest. You can also associate your Windows 8 Universal project with the application in the Windows Store by right-clicking on the project and selecting Store > Associate App with the Store.

Results

Your push notifications setup is now complete.