启动呼叫事务在新安装时总是失败,Callkit iOS
我正在使用callkit for voip应用程序,每次新安装时,callkit startCallAction请求都会失败并抛出“com.apple.callkit.error.requesttransaction error 7” 请在下面找到负责的方法启动呼叫事务在新安装时总是失败,Callkit iOS,ios,swift,voip,callkit,Ios,Swift,Voip,Callkit,我正在使用callkit for voip应用程序,每次新安装时,callkit startCallAction请求都会失败并抛出“com.apple.callkit.error.requesttransaction error 7” 请在下面找到负责的方法 func performStartCallAction(handle: String) { let uuid = UUID() let callHandle = CXHandle(type: .phoneNumber, va
func performStartCallAction(handle: String) {
let uuid = UUID()
let callHandle = CXHandle(type: .phoneNumber, value: handle)
let startCallAction = CXStartCallAction(call: uuid, handle: callHandle)
let startCallTransaction = CXTransaction(action: startCallAction)
callKitController.request(startCallTransaction) { error in
if let error = error {
print("StartCallAction transaction request failed: \(error.localizedDescription)")
return
}
let callUpdate = CXCallUpdate()
callUpdate.remoteHandle = callHandle
callUpdate.supportsDTMF = true
callUpdate.supportsHolding = true
callUpdate.supportsGrouping = false
callUpdate.supportsUngrouping = false
callUpdate.hasVideo = false
self.callKitProvider.reportCall(with: uuid, updated: callUpdate)
}
}
在后续运行中,相同的代码可以正常工作。
我不确定我做错了什么,请帮忙。TIA.同样的事情也发生在我身上。我找不到任何解决这个问题的办法。