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.
Api.nativeNotificationsIsSubscribed()
.then(isSubscribed =>
{
// Code goes here.
});
See Api.nativeNotificationsSubscribe for example code.