Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

PushNotificationChannelManager.CreatePushNotificationChannelForSecondaryTileAsync | createPushNotificationChannelForSecondaryTileAsync method

Creates an object, bound to a secondary tile, through which you retrieve a push notification channel from Windows Push Notification Services (WNS). The tile can be a secondary tile of the calling app or any other app in the same package.

Syntax


Windows.Networking.PushNotifications.PushNotificationChannelManager.createPushNotificationChannelForSecondaryTileAsync(tileId).done( /* Your success and error handlers */ );

Parameters

tileId

Type: String [JavaScript] | System.String [.NET] | Platform::String [C++]

The ID of the secondary tile to bind to the push notification channel.

Return value

Type: IAsyncOperation<PushNotificationChannel>

The object, bound to the secondary tile, that is used to request a PushNotificationChannel from the WNS.

Remarks

Note  Channels bound to secondary tiles only accept push notifications for Tile and Badge update types.

Examples

This example shows the use of this method to retrieve a push notification channel for a secondary tile.



var pushNotifications = Windows.Networking.PushNotifications;
var channel;

pushNotifications.PushNotificationChannelManager.createPushNotificationChannelForSecondaryTileAsync(myTileId).then(function (channel) {
    // Your code here.
})

Requirements (device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

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

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (operating system)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

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

See also

PushNotificationChannelManager
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:
© 2015 Microsoft