We used a WKWebView for holding online classes (chat) using adobe connect. There is a microphone icon to send user voice. In safari when user taps on microphone button, a permission dialog opens for website and after granting permission microphone works properly. but when using WKWebView in application,though user grants microphone permission, it seems having no permission to microphone and shows this alert: "media device not allowed over insecure origin"
How can i fix it? WKWebView config:
webview.configuration.preferences.javaScriptEnabled = true
webview.configuration.preferences.javaScriptCanOpenWindowsAutomatically = true
webview.configuration.allowsInlineMediaPlayback = true
webview.configuration.allowsAirPlayForMediaPlayback = true