Does iOS 11 WKWebView support WebRTC ?

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.

I am also having a hard time figuring out whether WebRTC is supported in WKWebViews in iOS 11.


From my research, it is clear that WebRTC is supported on Safari (which is built on top of WebKit) in iOS 11!


However it seems like one of the following scenarios could be true:

  1. WebKit itself supports WebRTC. Safari is built on top of WebKit and uses WebKit to support WebRTC. WKWebView (which is built on top of WebKit) does not support WebRTC.
  2. WebKit itself does not support WebRTC. Safari supports WebRTC.


Some clarification or pointers to relevant documentation that I might have missed would be greatly appreciated!

I asked about this internally and the answer is that, right now, WebRTC is only supported in Safari. No WKWebView, not even SFSafariViewController.

As always, if this is something you’d like to see added, you should file an enhancement request describing your requirements. I’d appreciate at least one of you posting a bug number, just so Future Quinn™ has a thread on which to pull if this comes up again.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

Posted suggestion with bug number 34846782 - thanks for the help!

Adding a vote to this as this is something that we are looking for too. We're delighted with the Safari support for WebRTC as it allows our solution to work on iPad and iPhones, but many of our custmers would like to use it embedded within applications.


For reference - here is a demo page that shows this functionality: https://demos.learnosity.com/assessment/questions/audio_advanced.php


Mark

Is WebRTC support in the works for app publishers(i.e. support in a WKWebView or SFSafariViewController)? Is there any timeline for when we should expect to see WebRTC support?

Posted suggestion with bug number 34846782

Thanks for that.

Is WebRTC support in the works for app publishers(i.e. support in a WKWebView or SFSafariViewController)? Is there any timeline for when we should expect to see WebRTC support?

Sorry, but I can’t comment on The Future™.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

Hi

Do you have any feedback from Apple regarding your bug ?

We're also stuck with this webrtc issue.


Thks

Hello Eskimo,


Knowing when (or at least if in 2018) WebRTC will be usable in a WKWebView could save us from taking technical decisions that would lead us to meaningless efforts in months.

I understand you cannot tell us about your plans, but a little hint could be very helpful for many of us.


Best Regards,

Christophe Saunier

I’m sorry but I can’t comment on this issue specifically.

My general advice is that you target the OS that’s shipping today. Big features are typically added in major OS releases, which means that you have to a) wait for that OS release, and b) wait for your app’s deployment target to ‘pass’ that OS release.

Consider

WKWebsiteDataStore
, a nice addition that we made in iOS 9. Most iOS developers maintain compatibility with the “current minus one” iOS release, so they won’t be able to rely on
WKWebsiteDataStore
until they drop support for iOS 9, which is around about now.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

Thank you for your answer Eskimo.


Best Regards,

Christophe Saunier

Another vote added!

We are having the same issue. Please support webrtc in iOS 11 and above, lots of efforts have gone into it!

getUserMedia not supported in WKWebView

This bug was filed in radar, which is Apple's bug tracking system : http://www.openradar.me/33571214

IMy suggestion is that u use adapter.js since it helps unifing the APIs.


But yes - WebRTC Works. https://stackoverflow.com/a/49467964/1047547

Another vote added!

We are having the same issue. Please support!


Regards,

Marco

i would like to add my support for this request too... Disappointed that it doesnt seem to be supported in iOS12 Beta


Allowing WebRTC within a WKWebView allows for some pretty cool possibilities.

Apple, please add WebRTC support in webview. We're on iOS 12.1 now and it's still not supported. Is there a reason this is not being implemented (security or otherwise)?

Another vote added. Developed an app using wkwebview, and this is holding my development up big time.

Please support WebRTC on WKWebView or SFSafariViewController. Android already support WebRTC in WebView, we need to give customer consistant experience in all platform.Thank you apple!

2019 here and still waiting for this feature. Thats sad because that kind of feature would led to tons of new cool apps.

Anyway i hope that would be added and retro compatible.

Thank you

Come on Apple, you need to support WebRTC on WKWebview. Too many developers are waiting for this.

Come on, Apple. This is in very high demand and is stopping me in my tracks as far as the iPhone app. The android app is so simple and works fine. Enable WkWebview getUserMedia asap. You don't want android to become the more advanced phone app-wise because apps were limited in iOS.

I just want to reiterate the advice from my first post on this thread: If this is something you’d like to see added, you should file an enhancement request describing your requirements. These bugs will likely be dup’d to the the ‘lead’ bug here (r. 29281220), but they will help WebKit engineering get a better understanding about the level of demand.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

I am trying to implement it too, but getUserMedia() is not working on the WKWebView

I followed your advise and created yet another bug about the same topic (https://bugreport.apple.com/web/?problemID=48562221).


It would be very helpful to have an answer and a roadmap. This issue blocks a whole set of web-based applications which would be possible otherwise. Moreover, it is about a piece of web standard that is disabled on one of the major web platform. That situation creates a huge uncertainty for any developer who plans to invest using HTML5-based video or audio capture for their product. This leaves the developers in a frustrating and powerless state.

Have created another enhancement request for this (https://bugreport.apple.com/web/?problemID=48908350).


This seems like a pretty sought after API which allows beautiful and powerful applications to be written. No idea why Apple would want to shut that down. A roadmap and answer would be helpful to our business indeed.

Does iOS 11 WKWebView support WebRTC ?
 
 
Q