The Permissions API provides the uniform way for web applications to query for the permission status for the features that require user consent, like notifications or geolocation. With Permissions API the app can list the permissions granted by the user without actually trying to use the feature.
- Returns a
Promiseresolved with the object representing the permission status of the requested feature.
- Returns the permission status of the requested feature, either
deniedor - in case the user was not yet asked -
- An event fired when the permission status of the requested feature has changed.