尝试使用iOS 10.3上的tel://方案拨打电话号码时提示 [英] Prompt when trying to dial a phone number using tel:// scheme on iOS 10.3

查看:1448
本文介绍了尝试使用iOS 10.3上的tel://方案拨打电话号码时提示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

更新到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文档:


tel URL方案用于在iOS设备上启动Phone应用程序并启动拨打指定的电话号码。当用户点击网页中的电话链接时,iOS会显示一条警告,询问用户是否确实要拨打电话号码并在用户接受时启动拨号。当用户在本机应用程序中打开带有tel方案的URL时,iOS不会显示警报并启动拨号而不会进一步提示用户。但是,本机应用程序可以配置为显示自己的警报。

The tel URL scheme is used to launch the Phone app on iOS devices and initiate dialing of the specified phone number. When a user taps a telephone link in a webpage, iOS displays an alert asking if the user really wants to dial the phone number and initiates dialing if the user accepts. When a user opens a URL with the tel scheme in a native app, iOS does not display an alert and initiates dialing without further prompting the user. However, a native app can be configured to display its own alert.

根据此,提示显示网页但不显示在原生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.

https://developer.apple.com/library/content/releasenotes/General /RN-iOSSDK-10.3/


openURL

当第三方应用程序调用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.


发行e存在于iOS中,允许在没有提示的情况下进行呼叫。这个
问题是通过提示用户确认呼叫启动来解决的。

An issue existed in iOS allowing for calls without prompting. This issue was addressed by prompting a user to confirm call initiation.

这篇关于尝试使用iOS 10.3上的tel://方案拨打电话号码时提示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆