In https://developer.mozilla.org/en-US/docs/Web/API/Permissions there is a Browser Support table indicate that some browser don't support Permissions API
Also as far as I understand , when a user reject permission request there is no way to request permission again
I need to create two functions checkPermission and grantPermission , these function return resolved promise when we have permission and rejected promise when not
- For the browser that don't support Permissions API , What must I do? If I return
rejectedpromise may be NO PERMISSION IS REQUIRED FOR THAT BROWSER !! If I returnresolvedmay be my app works wrong! - Is there any library wrapped permission api?
Aucun commentaire:
Enregistrer un commentaire