在iOS中以编程方式呼叫手机号码,而无需用户交互且没有用户确认提示 [英] Programmatically Call on a mobile number without user interaction and without user confirmation prompt in iOS
本文介绍了在iOS中以编程方式呼叫手机号码,而无需用户交互且没有用户确认提示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在iOS中使用Swift/Objective C在没有用户交互且没有用户确认提示的情况下拨打手机号码?
How to call on a mobile number without user interaction and without user confirmation prompt in iOS using Swift / Objective C?
推荐答案
这对于电话是不可能的,但是对于VoIP是:
This is not possible for phone calls, but for VoIP is:
要拨出电话,应用程序会从其CXCallController对象请求一个CXStartCallAction对象.该操作由一个UUID(用于唯一标识该呼叫)和一个CXHandle对象(用于指定收件人)组成.
To make an outgoing call, an app requests a CXStartCallAction object from its CXCallController object. The action consists of a UUID to uniquely identify the call and a CXHandle object to specify the recipient.
这篇关于在iOS中以编程方式呼叫手机号码,而无需用户交互且没有用户确认提示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文