Sending push notifications with WNS (Windows Runtime apps using JavaScript and HTML)

Applies to Windows and Windows Phone

Note  Not using JavaScript? See Sending push notifications (Windows Store apps using C#/VB/C++ and XAML).

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

TopicDescription

Quickstart: Sending a push notification

This functionality would not typically be implemented using JavaScript. See Sending a push notification (Windows Store apps using C#/VB/C++ and XAML).

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 generally is not used to convey UI data.

 

Related topics

Push and periodic notifications sample

 

 

Show:
© 2014 Microsoft. All rights reserved.