Notify the caller that the call is received by the callee in iOS using CallKit

Solution 1:

The provider(_ provider: CXProvider, perform action: CXAnswerCallAction) is called by CallKit when you answer a call. You don't have to make a CXAnswerCallAction transaction inside that function, I don't know what happens in that case, but it's likely that it leads to an infinite loop.

Moreover, you don't have to call reportNewIncomingCall(uuid: uuid) if, in turn, it calls reportNewIncomingCall(with UUID: UUID, update: CXCallUpdate). If you're answering the call, it means you already reported the new incoming call.