AccessoryManager.EnableNotificationsForApplication(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.