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

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -