RSATom opened a new issue #1166:
URL: https://github.com/apache/cordova-ios/issues/1166
# 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 WebRTC almost not suitable
for use in production.
## Feature Description
The simplest solution is add
```
- (void)webView:(WKWebView *)webView
requestMediaCapturePermissionForOrigin:(WKSecurityOrigin *)origin
initiatedByFrame:(WKFrameInfo *)frame
type:(WKMediaCaptureType)type
decisionHandler:(void (^)(WKPermissionDecision decision))decisionHandler
API_AVAILABLE(ios(15.0))
{
decisionHandler(WKPermissionDecisionGrant);
}
```
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
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]