How to keep iOS native call UI after answering the call with CallKit
Asked Answered
H

2

15

I am trying to achieve same results that can be seen on 29:52 second of Enhancing VoIP Apps with CallKit - WWDC 2016. In that video it shows that after answering call the buttons are moved and changed by animation, and the screen stays in native in-call UI.

I built the Speakerbox and tried the "Simulate Incoming Call" function, but as soon as the call is answered by answer call button (the same action that is shown on video), the native call screen disappears and the application screen is shown with active calls shown in the list (which is different from what is shown in WWDC video):

enter image description here

Though there is a native call UI screen for very short time during transition from Incoming Call native UI to the app, but I can't find how to force it to stay on that screen. Debugging the Speakerbox app there is no any delegate method called until all native screens are disappeared and the app is already opened.

I have tested receiving incoming call when the screen is locked, in that case the native UI is shown:

enter image description here

I would like to achieve same result on non locked phone.

Honshu answered 26/3, 2017 at 9:59 Comment(1)
Did you find a solution ? I'm having the exact same need.Kiowa
V
0

Simply you can't keep native UI after accept incoming call, at least in iOS 10, maybe in iOS 11 Apple give a way to keep native UI.

Vicarial answered 27/3, 2017 at 6:56 Comment(2)
Same as you I also was not able to achieve that. But WWDC video of iOS 10 demonstrates that you can, and I couldn't find any document telling the opposite. Have you a link to official document where it tell you can not get native call UI after accepting the call?Honshu
There isn't documentation where Apple say it. Neither where tell how to keep native ui.Vicarial
P
0

If you lock the phone and then receive an incoming call, you will have similar experience to what you saw on WWDC. There is no a way to change this behavior in iOS 10.

Punch answered 30/3, 2017 at 10:40 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.