Post

Replies

Boosts

Views

Activity

Reply to Open javascript popup in WKWebView?
I was facing the same issue... You need to add the javaScriptCanOpenWindowsAutomatically = true to the WKPreference object in the WKWebview's Configuration... This will cause the createWebViewWith delegate to be called... let wkPreferences = WKPreferences() wkPreferences.javaScriptCanOpenWindowsAutomatically = true Build the Configuration of the WKWebView object     let configuration = WKWebViewConfiguration()     configuration.preferences = wkPreferences Naturally use the configuration object when creating the WKWebView 		webView = WKWebView(frame: .zero, configuration: configuration)
Dec ’20