PushNotificationManager.IsSupported 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.
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
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.