JavaScript - list of all navigator permissions query status states
In this article, we would like to show you list of all navigator permissions query status state values with explanation in JavaScript.
Quick solution:
'granted'
'prompt'
'denied'
The 'granted'
status value, means that the user, or the user agent on the user's behalf, has given permission to use the API. The caller can now use the feature (like microphone, camera, etc.) possibly without having the user agent asking the user's permission.
The 'prompt
'
status value, means that the user has not given permission to use the API (it's the same as denied). It also means that if a caller attempts to use the feature (like microphone, camera, etc.), the user agent will either be prompting the user for permission or access to the feature will be denied.
The 'denied'
status value, means that the user, or the user agent on the user's behalf, has denied access to the API. The caller will can't use the feature (microphone, camera, etc.).