[英]iOS 11 - <a href=“tel:1-427-555-05-05”> links only work with long tap on iPhone, single tap doesn't work
Hello StackOverflow community 您好StackOverflow社区
I am building iOS 11 Swift WKWebView
app, currently it is browsing an https remote web site 我正在构建iOS 11 Swift
WKWebView
应用程序,当前正在浏览https远程网站
I've made a phone call page, with html code like 我用html代码制作了一个电话页面,例如
<a href="tel:78122931709">+7 (812) 293-17-09</a>
<a href="tel:78122931709">Make a phone call</a>
But for some reasons, on the iPhone SE under iOS 11.2.6 the tel links are only opened by long tap. 但是由于某些原因,在iOS 11.2.6下的iPhone SE上,只有长按才能打开tel链接。 For single tap the app does nothing.
只需轻按一下,该应用程序就什么也不做。
On iPad Air 2 under iOS 11.2.6 single tap works, options appear after single tap instantly, not after long tap. 在iOS 11.2.6下的iPad Air 2上,单击可工作,选项会在单击后立即显示,而不是在长按后显示。
What I want to do is make iPhone app with WKWebView
open prompt to call on single tap, not after long tap and choosing first option. 我想要做的是使iPhone应用程序具有
WKWebView
打开提示, WKWebView
单击即可调用,而无需长按并选择第一个选项。 Is there any way to do it? 有什么办法吗?
My solution was to switch from using WKWebView to deprecated UIWebView 我的解决方案是从使用WKWebView切换到不推荐使用的UIWebView
All telephone phone links work fine on iPhone on UIWebView 所有电话链接都可以在UIWebView上的iPhone上正常工作
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.