Push Notifications in Native Windows 8 Universal Applications
This tutorial explains how to configure a MobileFirst Native Windows Universal application to support push notifications.
Also mentioned are the addresses and ports that are required for notifications to arrive to the supported Windows Push Notification Services vendor (WNS).
Prerequisite: Make sure that you read the Configuring a native Windows Universal application with the MobileFirst Platform SDK tutorial first.
Setting up push notification
To send push notifications to Windows Universal devices, use Windows Push Notification Services (WNS).
As a developer, you need to register your app with Windows Store through the Windows Dev Center by using your Microsoft account.
For more information about how to get WNS credentials (which you will use later in the MobileFirst project), see http://msdn.microsoft.com/en-in/library/windows/apps/hh465407.aspx
application-descriptor.xml file, Add the pushSender element under the nativeWindows8App environment (these settings are also editable with the Application Descriptor Editor in Design mode).
Use the values that you previously generated in the Windows Store Dashboard:
- Replace clientSecret value with the secret key.
- Replace packageSID value with the package security identifier.
Set the Identity Name and Publisher values manually in the package manifest or associate your native project with the application in the Windows Store by right-clicking the project and selecting Store->Associate App with the Store.
If you want your app to support toast notification, add the
ToastCapable="true" attribute to the
VisualElements element in the package manifest.
For more information about setting up your native Windows Universal application for push notification, see the topic about "Setting up push notifications for Windows Universal" in the user documentation.
Windows Universal Push Notifications Service
No specific port needs to be open in your server configuration.
WNS uses regular http or https requests.
- Event Source Notifications in Native Windows 8 Applications
- Tag and Broadcast Notifications in Native Windows 8 Applications