tel not open call ios webview swift
Problem:
I want to open telephone call option ahile add numbers as link in webview.How can i achieve that?
Solution:
public func webView(_ webView: WKWebView, decidePolicyFor navigationAction: WKNavigationAction, decisionHandler: @escaping (WKNavigationActionPolicy) -> Void) {
if navigationAction.request.url?.
UIApplication.shared.open(
return decisionHandler(.cancel)
} else {
return decisionHandler(WKNavigationAc
}
}
Use the above code to achieve that.While tap on the link it will show you telephone call option.
Comments
Post a Comment