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

2020-07-18 03:08发布

问题:

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.



标签: ios callkit