Permissions API

Overview

Permissions API allows web apps to query for the permission status or request the permission for the features that might require user consent such as camera, geolocation, microphone, or notifications.

Demo

https://nectar.website/demo/web-apis/permissions/

Usage

You can refer to the code present in /partials/web-apis/permissions.html file and use it accordingly.

Reference

https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API

Last updated