ios - How to close Callkit screen after VOIP call disconnected -


i trying remove callkit screen once voip call disconnected source or destination.

i used code

cxendcallaction *endaction = [[cxendcallaction alloc] initwithcalluuid:[nsuuid uuid]]; cxcallcontroller *callcontroller = [[cxcallcontroller alloc] initwithqueue:dispatch_get_main_queue()]; requesttransaction:[cxtransaction transactionwithactions:nil completion:completion]]; 

but not working close callkit. can 1 me solve issue?

you have pass cxtransaction cxendcallaction requesttransaction.

first of in initwithcalluuid have pass current call nsuuid. can call requesttransaction on cxcallcontroller , pass [cxtransaction transactionwithactions:@[endaction] it, instead of nil did.

cxendcallaction *endaction = [[cxendcallaction alloc] initwithcalluuid:[nsuuid uuid]]; // current call uuid cxcallcontroller *callcontroller = [[cxcallcontroller alloc] initwithqueue:dispatch_get_main_queue()]; [callcontroller requesttransaction:[cxtransaction transactionwithactions:@[endaction]] completion:completion]; 

Comments

Popular posts from this blog

html - How to set bootstrap input responsive width? -

javascript - Highchart x and y axes data from json -

javascript - Get js console.log as python variable in QWebView pyqt -