How to close Callkit screen after VOIP call disconnected

Viewed 2771

I am trying to remove callkit screen once my voip call is disconnected by source or destination.

I used this code

CXEndCallAction *endaction = [[CXEndCallAction alloc] initWithCallUUID:[NSUUID UUID]];
CXCallController *callController = [[CXCallController alloc] initWithQueue:dispatch_get_main_queue()];
requestTransaction:[CXTransaction transactionWithActions:nil completion:completion]];

But it is not working to close the callkit. Can any one help me to solve this issue?

2 Answers
Related