PushNotificationChannel class

Applies to Windows and Windows Phone

Represents a delivery vehicle and addressing mechanism for push notifications. The channel Uniform Resource Identifier (URI) represented by this interface is used by a third-party application server to communicate with the Windows Push Notification Services (WNS). The push notification channel is used by the client to intercept notifications.

Syntax


public sealed class PushNotificationChannel

Attributes

[Version(0x06020000)]

Members

The PushNotificationChannel class has these types of members:

Events

The PushNotificationChannel class has these events.

EventDescription
PushNotificationReceived Fires when a push notification has arrived on this channel.

 

Methods

The PushNotificationChannel class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.

MethodDescription
Close Explicitly invalidates this channel. Any notifications pushed to this channel after this method is called are not delivered.

 

Properties

The PushNotificationChannel class has these properties.

PropertyAccess typeDescription

ExpirationTime

Read-onlyGets the time at which the channel expires. Notifications sent to this channel after this time are rejected.

Uri

Read-onlyGets the Uniform Resource Identifier (URI) to which an app server sends a push notification intended for an application or secondary tile bound to this channel. This Uniform Resource Identifier (URI) is transmitted to and stored by the third-party app server.

 

Remarks

This object is returned through an instance of the IAsyncOperation interface which is returned through the CreatePushNotificationChannelForApplicationAsync method. When the asynchronous operation completes successfully, it returns the PushNotificationChannel object through a then or done method.

Requirements

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Networking.PushNotifications
Windows::Networking::PushNotifications [C++]

Metadata

Windows.winmd

Capabilities

internetClient

See also

WNS overview
Push and periodic notifications sample
Quickstart: Sending a tile push notification
Quickstart: Sending a toast push notification
How to update a badge through push notifications
How to authenticate with the Windows Push Notification Service (WNS)
How to request, create, and save a notification channel
Guidelines and checklist for push notifications
Push notification service request and response headers

 

 

Show:
© 2014 Microsoft