Delen via


Sending push notifications with WNS (XAML)

Note  Not using C#/VB/C++? See Sending push notifications (HTML).

 

The Windows Push Notification Services (WNS) enables enables third-party developers to send toast, tile, and badge updates from their own cloud service. WNS provides a mechanism to deliver updates to your users in a dependable and power-efficient way, even when your app is not running. Push notifications are ideal when you need to target a specific user with personalized content. The topics in this section show you code examples that demonstrate how to accomplish specific tasks that relate to the sending of push notifications.

See the Windows Push Notification Services (WNS) overview for a conceptual discussion of push notification and WNS concepts, requirements, and operation. See Get started with Mobile Services to learn about using Azure to send notifications.

In this section

Topic Description

Quickstart: Sending a push notification

Your cloud server can send a push notification to your app through the WNS. This procedure applies to tile, toast, badge, and raw push notifications.

How to request, create, and save a notification channel

You can open a channel Uniform Resource Identifier (URI) over which your app can receive push notifications. You can then send the channel to your server which uses it to send push notifications, and close it when you no longer need it.

How to authenticate with the Windows Push Notification Service (WNS)

This topic explains how to authenticate your cloud server with WNS and receive an access token in return.

Push notification service request and response headers

This topic describes the service-to-service web APIs and protocols required to send a push notification.

Quickstart: Intercepting push notifications for running apps

You can design your app to intercept a push notification and respond to that notification in a non-default manner. This procedure can be used for all push notification types, but it is particularly useful for toast and raw notifications.

Raw notifications

You can use raw notifications, a type of push notification, to send short messages from your app's cloud service to an app through WNS. Unlike the XML payload of other push notification types (tile, toast, badge), the payload contained in a raw notification is strictly app-defined, and is not used to convey UI data.

 

Push and periodic notifications sample

Windows Push Notification Services (WNS) overview