我刚刚遇到了这个问题。在我的主屏幕启动的 Web 应用中,使用 "_blank" 作为 target 的链接阻止了 SMS: URI 的触发:
<a href="sms:?body=Hello" target="_blank">
<a href="sms:?body=Hello">
在Chrome 65.0.3325.109上进行了测试,当我在一个onClick处理程序中使用window.location.href='tel:12345678'
时,tel:
可以正常工作,就像https://bugs.chromium.org/p/chromium/issues/detail?id=792990#c2中建议的那样。
然而,当我尝试使用window.open('tel:12345678')
时,却没有起作用。