Share via


AccessoryManager.EnableNotificationsForApplication(String) Method

Definition

Opt into getting toast and app uninstall notifications from the specified app.

public:
 static void EnableNotificationsForApplication(Platform::String ^ appId);
 static void EnableNotificationsForApplication(winrt::hstring const& appId);
public static void EnableNotificationsForApplication(string appId);
function enableNotificationsForApplication(appId)
Public Shared Sub EnableNotificationsForApplication (appId As String)

Parameters

appId
String

Platform::String

winrt::hstring

The string containing the id of the application to give notifications.

Windows requirements

App capabilities
accessoryManager

Remarks

Calling this API requires that the ID_CAP_SMS and ID_CAP_SMS_COMPANION capabilities be specified in the application manifest.

Applies to

See also