RegisterNotificationChannelAsync(StoreServicesNotificationChannelParameters) | registerNotificationChannelAsync(StoreServicesNotificationChannelParameters) method

StoreServicesEngagementManager.RegisterNotificationChannelAsync(StoreServicesNotificationChannelParameters) | registerNotificationChannelAsync(StoreServicesNotificationChannelParameters) method

Registers your app to receive targeted push notifications from Windows Dev Center, with the option to specify the notification channel to use for the notifications.

Syntax


public:
IAsyncOperation<StoreServicesNotificationChannelRegistrationResult>^ RegisterNotificationChannelAsync(
  StoreServicesNotificationChannelParameters^ notificationChannelParameters
)

Parameters

notificationChannelParameters

Type: StoreServicesNotificationChannelParameters

An object that specifies the notification channel to use.

Return value

Type: IAsyncOperation<StoreServicesNotificationChannelRegistrationResult>

A StoreServicesNotificationChannelRegistrationResult that represents the result of the asynchronous operation.

Remarks

To register your app to receive Windows Dev Center notifications and specify the notification channel to use for the notifications, call this method in startup code in your app. Before you can use this method in your code, you must first install the Microsoft Store Services SDK and add a reference to the Microsoft Engagement Framework to your project.

For more guidance about how to use this method, including a code example, see Configure your app to receive Dev Center notifications.

Note  When you call this method, a file named MicrosoftStoreEngagementSDKId.txt is created in the local app data store for your app. This file contains an ID that is used by the targeted push notifications infrastructure. Make sure that your app does not modify or delete this file. Otherwise, your users may receive multiple instances of notifications, or the notifications may not behave properly in other ways.
 

Requirements

Minimum supported client

Windows 10

Minimum supported server

None supported

Minimum supported phone

Windows 10 Mobile

Namespace

Microsoft.Services.Store.Engagement
Microsoft::Services::Store::Engagement [C++]

Metadata

Microsoft.Services.Store.Engagement.winmd

See also

Configure your app to receive Dev Center notifications
StoreServicesEngagementManager
RegisterNotificationChannelAsync

 

 

Show:
© 2017 Microsoft