7

When my VoIP app receives a call with CallKit, iOS shows the native system call UI.

How can I show this native call view also for outgoing calls?

Panda
  • 6,955
  • 6
  • 40
  • 55
funkenstrahlen
  • 3,032
  • 2
  • 28
  • 40
  • Do you really need to do this using CallKit? Because you can make outgoing calls programmatically by tapping into native phone app now.. see this thread: http://stackoverflow.com/questions/4929717/make-a-phone-call-programmatically – ymotov Jun 17 '16 at 17:12
  • @ymotov My question is not about how to start a call. I want to see the iOS native call UI whenever there is a call running. Also when started from within the app by dialing or by tapping from the native app. – funkenstrahlen Jun 17 '16 at 19:57
  • I want to start a sip call with my app. Not a normal mobile call. – funkenstrahlen Jun 17 '16 at 19:58
  • 1
    got it.. I misunderstood then. – ymotov Jun 18 '16 at 00:17

1 Answers1

8

There is not currently a way to immediately show the system's native in-call UI upon dialing an outgoing call from a CallKit VoIP app. However, this native UI is shown if the user locks their device while the VoIP call is ongoing.

Stuart M
  • 11,458
  • 6
  • 45
  • 59
  • Could one trick the system and show outgoing calls as incoming to the system and show the native call ui this way? – funkenstrahlen Jun 28 '16 at 06:10
  • 1
    You would likely hit many issues by trying to do this, since many behaviors and assumptions are made based on whether the call is incoming or outgoing, and a call may not be changed from incoming to outgoing or vice-versa. As always, I would encourage filing a [Bug Report](http://bugreport.apple.com) with Apple to request this capability if it is something you would like! – Stuart M Jun 28 '16 at 06:20
  • @StuartM: So, conclusion is " We can get native system call UI if call is incoming and app is in background". Is that so? – Nitesh Borad Jul 14 '16 at 07:48
  • 1
    @NiteshBorad Yes if a CallKit app receives an incoming call while it is in the background, the system's native incoming call UI will be shown. – Stuart M Jul 15 '16 at 07:55
  • 3
    Seems a shame we can't use the lovely in-call UI when phone wasn't locked. I guess we should just clone it as closely as possible... – Reuben Scratton Oct 12 '16 at 10:00
  • 4
    If the user locks their device while the VoIP call is ongoing, performEndCallAction: will be called then the call ends. The native UI does NOT show as the answer suggested. I am using iOS 10.2.1 – Qiulang Feb 20 '17 at 08:23
  • @StuartM : The outgoing call lifecycle mentioned in the document here shows the UI in stages. Do you think its possible to implement?http://devstreaming.apple.com/videos/wwdc/2016/230b83wfxc7m69dm90q/230/230_enhancing_voip_apps_with_callkit.pdf – iCodes Aug 02 '17 at 13:42
  • Is this still true today in late 2021? We're experiencing this same issue but given the lack of StackOverflow posts on the topic I'm wondering if this has since been resolved. – MrChrisRodriguez Nov 24 '21 at 07:19