New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[enhancement] add requestMediaCapturePermissionForOrigin support to avoid multiple permission request on getUserMedia call #1166
Comments
Same issue here with microphone access permission in general (aka everything related to Any news? react-native-webview solution: Ionic WKWebView solution: Home Assistant solution: |
I've tried the suggested solution and it's working pretty well. The app will still ask you once if you've never given the permission before, it will remember it afterwards and other instances of WKWebView with inAppBrowser for example will not automatically get the same permission! |
This works really good! I It would be nice to have this implemented by default or as an option. For the moment, we wrote a hook for it to modify the file. |
Feature Request
Motivation Behind Feature
If use native WebRTC from WKWebView inside Cordova, every getUserMedia leads to new permission request to user. And this makes native WebRTC almost not suitable for use in production.
Feature Description
The simplest solution is add
to https://github.com/apache/cordova-ios/blob/master/CordovaLib/Classes/Private/Plugins/CDVWebViewEngine/CDVWebViewUIDelegate.m
but it's definitely insecure solution, and application should have ability to respond to this request, or provide list of safe origins.
Alternatives or Workarounds
Didn't find any
The text was updated successfully, but these errors were encountered: