通过URL方案10.2+拨打电话时ios用户提示 [英] ios User Prompt when making outgoing call via URL Scheme 10.2+

查看:91
本文介绍了通过URL方案10.2+拨打电话时ios用户提示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Apple通过URL Scheme拨打电话时似乎已更改了行为.当前,我们使用以下代码来发起电话呼叫:

It appears that Apple have changed the behaviour when making a phone call via the URL Scheme. We currently use this code to initiate a phone call:

let url = NSURL(string: "tel://011111111111")
UIApplication.sharedApplication().openURL()

在iOS 10.2之前,这立即启动了拨号程序并拨打了电话.看来这已经改变,并且用户会收到提示确认进行电话呼叫的提示.看来tel://的行为更像telprompt://.尽管官方的Apple URL计划文档(最新更新于2015年)中提到,如果从本机应用程序打开tel://URL,则不需要用户交互.

Prior to iOS 10.2, this immediately launched the dialler and placed the phone call. It appears that this has now changed, and the user receives a prompt to confirm to make the phone call. It appears tel:// is behaving more like telprompt://. This is despite the official Apple URL Scheme document (last updated 2015) mentioning that user interaction is not required if a tel:// URL is opened from a native app.

有人知道(a)这是新的预期行为和/或(b)是否有另一种方法可以在不提示用户的情况下发起电话呼叫?

Does anyone know if (a) this is new, expected behaviour and/or (b) if there is another way around this to initiate a phone call, without prompting the user?

推荐答案

不幸的是,版本10.3限制了直接拨打电话和通话时间.

Unfortunately the version 10.3 to restricted the direct calls phone and facetime.

检查自己:

https://developer.apple.com/库/内容/发行说明/常规/RN-iOSSDK-10.3/

https://support.apple.com/en-gb/HT207617

这篇关于通过URL方案10.2+拨打电话时ios用户提示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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