Api.nativeNotificationsIsSubscribed

Returns a Promise<boolean> resolving to a boolean indicating whether the user is already subscribed to notifications on this device.

It returns a Promise<boolean> instead of a boolean since the browser APIs are asynchronous.

Usage

Api.nativeNotificationsIsSubscribed()
    .then(isSubscribed => 
    {
        // Code goes here.
    });

Examples

See Api.nativeNotificationsSubscribe for example code.

Parameters