PushManager.hasPermission()
method of the PushManager
interface returns a Promise
that resolves to the PushPermissionStatus
of the requesting webapp, which will be one of granted
, denied
, or default
.pushManager
property of the ServiceWorkerRegistration
interface returns a reference to the PushManager
interface for managing push subscriptions; this includes support for subscribing, getting an active subscription, and accessing push permission status.