Setting Up Push Notifications

The idea of a push notification is that a Web service can, at an arbitrary time, push data to a Windows device. A Web service cannot do this directly, however. It must communicate with Windows Push Notification Services to do the push on its behalf.

Therefore, to participate in push notifications, a Web service must know:

1. How to communicate with Windows Push Notification Services

2. The specific user, device, and tile (in the case of secondary tiles) that should receive the notification

Both of these details are represented by a special URI known as a channel URI. An app retrieves a channel URI by calling PushNotificationChannelManager’s CreatePushNotificationChannelForApplicationAsync method (or CreatePushNotificationChannelForSecondaryTileAsync ...

Get Universal Windows® Apps with XAML and C# Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.