问题描述
更新到10.3后,我的应用程序使用openURL:options:completionHandler:method按下我的应用程序中的呼叫按钮后,不再自动拨打电话号码。
After updating to 10.3, my app no longer automatically dials a phone number after pressing the call button in my app using the openURL: options: completionHandler: method.
相反,每次都会出现提示以确认用户的意图。
Instead, a prompt comes up every time to confirm the user's intentions.
根据Apple文档:
根据此,提示显示网页但不显示在原生iOS应用中显示。
According to this, the prompt displays for webpages but doesn't display in a native iOS app.
这可能是10.3中的错误吗?或者是否需要使用新功能或将新属性包含在我不知道的info.plist中?
Could this be a bug in 10.3? Or is there a new function I need to use or a new property to include in the info.plist I do not know about?
谢谢。
推荐答案
这是10.3发行说明中的已知问题。
This is listed as a known issue in the 10.3 release notes.
当第三方应用程序调用openURL时:在tel://,
facetime://或facetime-audio:// URL上,iOS显示提示,
需要用户拨号前确认。
When a third party application invokes openURL: on a tel://, facetime://, or facetime-audio:// URL, iOS displays a prompt and requires user confirmation before dialing.
它也列在,所以我假设这是一个新功能。
It is also listed in the Security content of the 10.3 update, so I'm assuming this a new feature that is here to stay.
这篇关于尝试使用iOS 10.3上的tel://方案拨打电话号码时提示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!