I am trying to integrate callkit with my voip app. At this point the CallKit displays an incoming call but as soon as I press the answer key it just goes back to my app's display homescreen. I want the in call UI of CallKit to display when I press the answer key.
func provider( _ provider: CXProvider, perform action: CXAnswerCallAction) {
XCPjsua.shared()?.handleIncomingCall();
// confifureAudioSession()
action.fulfill()
}
In the XCPjsua.shared()?.handleIncomingCall();
function I just connect the call.