I'm trying to implement web.skype.com in my WKWebView for calling someone. But a message always appears that I have to install a plugin for Skype calls. I tried to change the user agent but it doesn't work, the message still appears.
My Code:
let url = URL (string: "https://web.skype.com/")
var requestObj = URLRequest(url: url!)
let userAgent = "Mozilla/10.0 (Macintosh; Intel Mac OS X 10_30_2) AppleWebKit/902.3.12 (KHTML, like Gecko) Version/99.0.2 Safari/902.3.12"
requestObj.setValue(userAgent, forHTTPHeaderField: "User-Agent")
webView.isUserInteractionEnabled = true
webView.configuration.allowsAirPlayForMediaPlayback = true
webView.configuration.allowsInlineMediaPlayback = true
webView.configuration.allowsPictureInPictureMediaPlayback = true
webView.customUserAgent = userAgent
webView.load(requestObj)