Microsoft.Phone.Notification Namespace
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
The Microsoft.Phone.Notification namespace provides classes for receiving notifications from the Microsoft Push Notification Service.
Capabilities
If you use this API in your app, you must specify the following capabilities in the app manifest. Otherwise, your app might not work correctly or it might exit unexpectedly.
ID_CAP_PUSH_NOTIFICATION |
Windows Phone 8, Windows Phone OS 7.1 |
For more info, see App capabilities and hardware requirements for Windows Phone 8.
Classes
Class | Description | |
---|---|---|
HttpNotification | Contains the raw notification data that has been passed to the application from the Microsoft Push Notification Service. | |
HttpNotificationChannel | Creates a notification channel between the Microsoft Push Notification Service and the Push Client and creates a new subscription for raw notifications. | |
HttpNotificationEventArgs | Contains the event data when the connectivity status between the Push Client and the Microsoft Push Notification Services changes. | |
NotificationChannelConnectionEventArgs | Provides data for ConnectionStatusChanged events. | |
NotificationChannelErrorEventArgs | The argument returned with the ErrorOccurred event. | |
NotificationChannelUriEventArgs | Contains the event data when a notification channel receives the channel’s URI. | |
NotificationEventArgs | Contains the event data for when a notification channel receives a Tile or toast notification. |
Enumerations
Enumeration | Description | |
---|---|---|
ChannelConnectionStatus | Identifies the current connectivity status between the Push Client and the Microsoft Push Notification Service. | |
ChannelErrorType | An enumeration that contains asynchronous errors sent from the Push Client to the application. These error values can occur regardless of whether the application is running in the foreground or not. | |
ChannelPowerLevel | The additional data associated with the PowerLevelChanged message. |