RTCPeerConnection is undefined on page loaded in Mac WKwebview

Hello

I have a webrtc-based web app that is loaded inside a WKWebView.

The web app gets loaded just fine in our iOS App running WKWebView on an iPad with iOS 15.1.

We are using the exact same app, built for Mac Catalyst. However, on the Mac version, the web app gets loaded but the RTCPeerConnection object is undefined.. Meaning that our web app assumes that WebRTC is not available in that browser.

Isn't the native app supposed to work the exact same on iOS and MacOS? Is the Mac version of WKWebView more limited than its iOS counterpart ?

Is there any resource that states exactly what is supported in WKWebview in each platform?

Thanks

I have the same problem, it's been a month any updates on this?

Is there any update on this?

I have tried WKWebView with latest Xcode 15 beta 6 on MacOS 13.4.1(c). This issue still exists on WKwWebView with Mac Catalyst, but it works on iPhone/iPad with iOS.

There is no documentation for what platform (such as, Mac Catalyst, iPhone/iPad, MacOS) supports WebRTC on WKWebView.

Any help is appreciated

Does anyone found a solution?

RTCPeerConnection is undefined on page loaded in Mac WKwebview
 
 
Q