Check the permission status of the features available in the browser and set callbacks for when they change, Progressive Web App.
About this component
About Permissions API
The Permissions API provides the uniform way for Web applications to query for the permission status for the features that might require user consent, like notifications or geolocation. With Permissions API the app can list the permissions granted by the user without actually triggering the feature itself.
For more information: