PushNotificationManager.IsSupported Method

Definition

Gets a boolean value indicating if the Microsoft.Windows.PushNotifications notification APIs are supported for the calling app.

Note

The PushNotificationManager class has a dependency on the Singleton package. Because of that dependency, there are certain considerations to be aware of if you're calling these APIs from a self-contained app. For more info, and specifics, see Dependencies on additional MSIX packages.

public:
 static bool IsSupported();
 static bool IsSupported();
public static bool IsSupported();
function isSupported()
Public Shared Function IsSupported () As Boolean

Returns

Boolean

bool

True if push notifications APIs are supported; otherwise, false.

Remarks

If push notifications are not supported, we recommended that you use polling or your own custom socket implementation to receive payloads.

Applies to