I have created a chat but with webView. The problem is the chat has video and voice that is not supported with iOS because it does not support webRTC.
The main question is how can I easily add RTC inside webView in Swift to support iOS video and voice?
While Apple added support for WebRTC to mobile Safari in iOS 11, they did not extend support to either of the WebView components. This Apple Developer forum thread confirms the problem.
WebView can be defined as an object which can display the interactive web content and load HTML strings within the iOS application for an in-app browser. It is an instance of the WKWebView class, which inherits the UIView class.
Last year, iOS 13 ushered in the arrival of WebRTC to the SFSafariViewController so all of a sudden Twitter's in-app browser was able to run these types of apps.
WebRTC iOS Safari supportiOS Safari has been supporting WebRTC since Safari 11.
Apple is adding full support to WebRTC in WKWebView ! 🎉
Learn more here: https://webkit.org/blog/11353/mediarecorder-api/
Apple has added support for WebRTC to Safari.
If you want to use WKWebView - there is only a partial support.
Checkout this answer:
WebRTC Support in iOS 11 - Explained
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With