简体   繁体   English

iOS6:使用tel://-url拨打电话号码时的行为已更改

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

I am seeing an undocumented changed behaviour, when using the tel:-URL-Scheme to dial a phone number. 使用tel:-URL-Scheme拨打电话号码时,我看到未记录的更改行为。

Example

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

In iOS4 and iOS5 after the called ended, the user was left in the phone app. 在被叫结束后的iOS4和iOS5中,用户留在了手机应用程序中。 In iOS 6 the app, that made the call, is now relaunched. 在iOS 6中,发出呼叫的应用程序现已重新启动。 Interestingly making a facetime-Call using the facetime:// URL does not relaunch the app. 有趣的是,使用facetime:// URL进行facetime-Call不会重新启动应用程序。 Not very consistent:) Does anyone know how to control that behaviour, so it behaves like under iOS4/iOS5? 不太一致:)是否有人知道如何控制该行为,因此其行为类似于在iOS4 / iOS5下?

You can't, the implementation is totally up to the app that response the URL scheme. 您不能,实施完全取决于响应URL方案的应用程序。 In the case of the tel: scheme it's the dialer. 对于tel:方案,它是拨号程序。

Since Apple does have not released any scheme parameter for tel: there is no way to control the behavior of the dialer. 由于Apple尚未为tel:发布任何Scheme参数,因此无法控制拨号程序的行为。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM