ios – CallKit report about finish


I must notify CallKit when a name has ended. I do it by way of this operate

let endCallAction = CXEndCallAction.init(name: uuid_var.uuid_test)
let transaction = CXTransaction.init()
transaction.addAction(endCallAction)
self.controller.request(transaction, completion: {error in print(error)})
self.supplier.reportCall(with: uuid_var.uuid_test, endedAt: Date(), purpose: .remoteEnded)

However I am getting this error
Optionally available(Error Area=com.apple.CallKit.error.requesttransaction Code=4 "(null)")

UUID is appropriate, finish operate in a similar queue

Report about name appears to be like like this:

self.supplier.reportNewIncomingCall(with: uuid_var.uuid_test, replace: replace){ error in
                completion()
            }

Amassing UUID:
uuid_var.uuid_test = UUID()

I’ve checked, uuid similar in all features

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles