On iOS 11 I can run a web application that performs a WebRTC on Safari but when I write my own application using swift 4 and WKWebView it does not work!
Anybody know how to run WebRTC on WKWebView in iOS 11 ? or it is not supported this way?
Thanks.
On iOS 11 I can run a web application that performs a WebRTC on Safari but when I write my own application using swift 4 and WKWebView it does not work!
Anybody know how to run WebRTC on WKWebView in iOS 11 ? or it is not supported this way?
Thanks.
FYI, posting +1’s here won’t help. If you feel the need to +1 this, please follow the advice from my 30 Jan 2019 post.
Share and Enjoy
—
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"
+1, I need this feature
Disappointed that it doesnt seem to be supported in iOS13 Beta
+1 I've seen this feature working in IOS 13 beta build 1, but after the second beta build it got regressed.
Any idea when you are getting this fixed? I't already been a few years and it's still not fixed....
As pointed out in few earlier replies from Eskimo (Apple Developer Relations representative), if you want it, you need to make a feature request, in Feedback Assistant, which you can get to by the "Report Bugs" link at the bottom of this page. The more the reports, the more attention it seems to get within Apple engineering. As I understand it, Apple engineers seldom frequent these forums, and Apple management (those that allocate resources to problems), frequent these forums even less. All you are doing is ranting at your fellow developers, who, by the way, most likely agree with you, and have agreed with you for a long time, based on the length of this thread. As far as an ETA is concerned, Apple will let you know when Apple lets you know. They don't usually divulge their plans except within Apple events such as WWDC and the like. Like always, develop according to what the state of the system is today, and what has been officially divulged by Apple at WWDC, et al.
Is Webrtc getUsermedia works in SafariViewController or WkWebview?
Code Block <key>NSAppTransportSecurity</key> <dict> <key>NSAllowsArbitraryLoadsInWebContent</key> <true/> <key>NSAllowsArbitraryLoadsForMedia</key> <true/> </dict>
Asking with hopes that someone has run into or replicated or even resolved this issue:
In my WKWebView (targeting both macOS 11.0 & 12.4), navigator.mediaDevices.getUserMedia()
hangs as promise when called, and never shows a prompt as one expects when running this on e.g. https://google.com.
Full write-up with info, MCVe, etc found here: https://developer.apple.com/forums/thread/734363
As previously suggested, I've added:
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoadsInWebContent</key>
<true/>
<key>NSAllowsArbitraryLoadsForMedia</key>
<true/>
</dict>
and also NSAllowsArbitraryLoads
with no luck.
To be clear, navigator.mediaDevices.getUserMedia()
and navigator.mediaDevices.enumerateDevices()
are both defined:
getUserMedia()
hangs on promiseenumerateDevices()
returns an single (default) MediaInfoDevice audioinput
before & after asking permissions (via getUserMedia
or native microphone permissions via AVCaptureDevice)