html - 如何在 iOS 上使用 tel : with * (star, asterisk) 或 # (hash, pound)?

标签 html ios url-scheme phone-call

我正在尝试使用其中包含 * 的 tel url 在 iPhone 上发起调用。它会正确打开通话对话框,但在您单击通话时会返回到 Safari。

<a href="tel:123*12">Test</a>

最佳答案

This documentation from Apple应该有帮助:

To prevent users from maliciously redirecting phone calls or changing the behavior of a phone or account, the Phone application supports most, but not all, of the special characters in the tel scheme. Specifically, if a URL contains the * or # characters, the Phone application does not attempt to dial the corresponding phone number.

更新(2018 年 1 月 2 日):此处提及的信息可能已过时。如果 Apple 在其较新的 SDK 中放宽了这些规则,请参阅新文档。引用 Husam 的回答。

关于html - 如何在 iOS 上使用 tel : with * (star, asterisk) 或 # (hash, pound)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4660951/

相关文章:

iOS 启动图像在 Dev 中有效,但在 App Store 版本中无效

ios - 为什么 Progress.fractionCompleted 超过 1.0?

用户取消后,iOS Safari 不识别 url 方案

ios - 如何在 iOS9 中从 Safari 打开 URL 方案?

jquery - 使用 DIV 的内容作为 HTML 页面的标题?

html - 如何仅使用 CSS 在单独的 div 中切换背景图像

javascript - 如何让登录部分在用户登录时消失?

jquery - 如何更改 2 个不同的 Bootstrap Modals 的背景颜色?

ios - 从 Swift 中的 AVCaptureSession 获取输出以发送到服务器

iphone - 从我在 iPhone 上的应用程序调用官方 *Settings* 应用程序