StoreServicesEngagementManager.RegisterNotificationChannelAsync StoreServicesEngagementManager.RegisterNotificationChannelAsync StoreServicesEngagementManager.RegisterNotificationChannelAsync StoreServicesEngagementManager.RegisterNotificationChannelAsync Method

Definition

Overloads

RegisterNotificationChannelAsync() RegisterNotificationChannelAsync() RegisterNotificationChannelAsync() RegisterNotificationChannelAsync()

Registers your app to receive targeted push notifications from Windows Dev Center.

RegisterNotificationChannelAsync(StoreServicesNotificationChannelParameters) RegisterNotificationChannelAsync(StoreServicesNotificationChannelParameters) RegisterNotificationChannelAsync(StoreServicesNotificationChannelParameters) RegisterNotificationChannelAsync(StoreServicesNotificationChannelParameters)

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.

RegisterNotificationChannelAsync() RegisterNotificationChannelAsync() RegisterNotificationChannelAsync() RegisterNotificationChannelAsync()

Registers your app to receive targeted push notifications from Windows Dev Center.

public : IAsyncOperation<StoreServicesNotificationChannelRegistrationResult> RegisterNotificationChannelAsync()
public IAsyncOperation<StoreServicesNotificationChannelRegistrationResult> RegisterNotificationChannelAsync()
Public Function RegisterNotificationChannelAsync() As IAsyncOperation(Of StoreServicesNotificationChannelRegistrationResult)
Microsoft.Services.Store.Engagement.StoreServicesEngagementManager.registerNotificationChannelAsync().done( /* Your success and error handlers */ );
Returns

Remarks

To register your app to receive Windows Dev Center 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.

Important

If your app also calls CreatePushNotificationChannelForApplicationAsync to create a notification channel for WNS, make sure that your code does not call CreatePushNotificationChannelForApplicationAsync and RegisterNotificationChannelAsync simultaneously. If you need to call both of these methods, make sure that you call them sequentially and await the return of one method before calling the other.

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.

See Also

RegisterNotificationChannelAsync(StoreServicesNotificationChannelParameters) RegisterNotificationChannelAsync(StoreServicesNotificationChannelParameters) RegisterNotificationChannelAsync(StoreServicesNotificationChannelParameters) RegisterNotificationChannelAsync(StoreServicesNotificationChannelParameters)

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.

public : IAsyncOperation<StoreServicesNotificationChannelRegistrationResult> RegisterNotificationChannelAsync(StoreServicesNotificationChannelParameters parameters)
public IAsyncOperation<StoreServicesNotificationChannelRegistrationResult> RegisterNotificationChannelAsync(StoreServicesNotificationChannelParameters parameters)
Public Function RegisterNotificationChannelAsync(parameters As StoreServicesNotificationChannelParameters) As IAsyncOperation(Of StoreServicesNotificationChannelRegistrationResult)
Microsoft.Services.Store.Engagement.StoreServicesEngagementManager.registerNotificationChannelAsync(parameters).done( /* Your success and error handlers */ );
Parameters
Returns

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.

See Also