PushManager.hasPermission()method of the
PushManagerinterface returns a
Promisethat resolves to the
PushPermissionStatusof the requesting webapp, which will be one of
pushManagerproperty of the
ServiceWorkerRegistrationinterface returns a reference to the
PushManagerinterface for managing push subscriptions; this includes support for subscribing, getting an active subscription, and accessing push permission status.