如何使用CallKit拨打非语音电话? [英] How can CallKit be used to make a non-voip call?

查看:84
本文介绍了如何使用CallKit拨打非语音电话?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用新的iOS 10 CallKit通过应用程序拨打电话,但要使用默认运营商.是否可以?如果可以,怎么办?

I would like to make a call from app using the new iOS 10 CallKit but using the default carrier. Is it possible? If so, how?

当前使用:

public void dial(String number) {
  NSURL url = new NSURL("tel://" + number);
  UIApplication.getSharedApplication().openURL(url);
}

推荐答案

如果您希望使用设备的运营商而不是通过自己的应用程序拨打标准电话(即,不通过自己的应用程序进行"VoIP"通话)然后启动 tel: URL仍然是这样做的方法.仅当您自己的应用程序支持该呼叫时,才涉及CallKit,但如果您拨打的是运营商支持的电话,则不是这种情况.

If you wish to make a standard telephone call using the device's carrier and not via your own app (i.e. not as a "VoIP" call in your own app) then launching a tel: URL is still the way to do this. CallKit is only involved if your own app will be backing the call, but that is not the case if you are making a carrier-backed telephone call.

这篇关于如何使用CallKit拨打非语音电话?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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