Reputation: 61
When call is disconnected by receiver(after receiving the call) than call failed screen appears, I don't want this screen to be displayed. All my delegate methods are working. How can I make a successful call? What cause the call to be failed?
Upvotes: 4
Views: 2255
Reputation: 1526
I ran into same situation :P But this is the solution:
- (void)provider:(CXProvider *)provider performEndCallAction:(CXEndCallAction *)action {
/* Perform your action after ending the call */
NSLog(@"performEndCallAction");
[action fulfill];
}
When performEndCallAction gets called by CallKit, execute [action fulfill] in it :)
Upvotes: 0
Reputation: 2408
To end the call, use CXEndCallAction and add the CXTransaction objects. Make sure you are using the correct uuid.
CXEndCallAction *action = [[CXEndCallAction alloc] initWithCallUUID:callUUID];
[self.callController requestTransaction:[CXTransaction ...Actions:@[action]] completion:completion];
Upvotes: 1