O'Reilly logo

Windows® Phone 8 Unleashed by Daniel Vaughan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Getting Started with Push Notification

The main CLR types used in push notification reside in the Microsoft.Phone.Notification namespace.

To enable an application to use push notification, the ID_CAP_PUSH_NOTIFICATION capability must be present in the WMAppManifest.xml file. Although not explicitly required for push notification, the ID_CAP_NETWORKING capability is also required if you want to notify a cloud service of the existence of an MNPS URI. Push notification is useless in most cases without the latter capability.

The following excerpt shows the capabilities needed for push notification in the WMAppManifest.xml file:

<Capabilities>  <Capability Name="ID_CAP_NETWORKING" />  <Capability Name="ID_CAP_PUSH_NOTIFICATION ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required