Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Unintended behavior
View staffing
Description
What are the best practices to handle onPermissionRequest callback of webview?
Incident -1:
Already required camera and audio permissions are granted by the user in the application, what should we do in onPermissionRequest callback of webview,?
Should we again alert the user that the url is trying to access or should we simply grant the permissions? Please help us in with the recommended best practices.
Incident-2:
The other webview permissions like 'RESOURCE_PROTECTED_MEDIA_ID' and 'RESOURCE_MIDI_SYSEX' does not require an inclusion in the manifest file and also does not require any system permissions and also not part of dangerous permission.
And what we should do when we check before granting the permissions in onPermissionRequest callback of webview.