iOS6 : Changed behavior when using tel://-url to dial phone number

标签 ios nsurl openurl

在使用 tel:-URL-Scheme 调用电话号码时,我看到了未记录的行为变化。

例子

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel://232322"]];

在 iOS4 和 iOS5 中,通话结束后,用户被留在手机应用程序中。在 iOS 6 中,发出调用的应用程序现在重新启动。有趣的是,使用 facetime://URL 进行 facetime-Call 不会重新启动应用程序。不是很一致:)
有谁知道如何控制这种行为,所以它的行为就像在 iOS4/iOS5 下一样?

最佳答案

你不能,实现完全取决于响应 URL 方案的应用程序。在 tel: 的情况下计划它的拨号器。

由于 Apple 没有为 tel: 发布任何方案参数没有办法控制拨号器的行为。

关于iOS6 : Changed behavior when using tel://-url to dial phone number,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12795719/

相关文章:

ios - 使用 URL 将 Plist 文件加载到数组中

ios - 如何让我的应用程序显示在 "open-in"- ios13 中 plist 文件的菜单中?

ios - 使用 dequeueReusableCellWithReuseIdentifer 时出错

ios - 如何从 UIWebView 获取 URL 的哈希片段

ios - Cordova iOS 错误 : Origin null is not allowed by Access-Control-Allow-Origin

ios - NSURLComponents elementsWithString - 规则

ios - 检查应用程序是否通过 iOS 上的今日小部件启动...?

ios - 将目标添加到 Collection View Nib 内的按钮操作

iOS 9 Xcode 7 - 应用程序在顶部和底部出现黑条

ios - swift 3 : How to reverse a transparent Navigation Bar?