How can CallKit be used to make a non-voip call?

陌路散爱 提交于 2019-12-06 05:06:56

问题


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?

Currently using:

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

回答1:


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.



来源:https://stackoverflow.com/questions/37979300/how-can-callkit-be-used-to-make-a-non-voip-call

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!