|
|
|
@ -30,6 +30,8 @@ final class CallKitCallUIAdaptee: NSObject, CallUIAdaptee, CXProviderDelegate {
|
|
|
|
|
|
|
|
|
|
providerConfiguration.supportsVideo = true
|
|
|
|
|
|
|
|
|
|
providerConfiguration.maximumCallGroups = 1
|
|
|
|
|
|
|
|
|
|
providerConfiguration.maximumCallsPerCallGroup = 1
|
|
|
|
|
|
|
|
|
|
providerConfiguration.supportedHandleTypes = [.phoneNumber]
|
|
|
|
@ -68,7 +70,11 @@ final class CallKitCallUIAdaptee: NSObject, CallUIAdaptee, CXProviderDelegate {
|
|
|
|
|
let update = CXCallUpdate()
|
|
|
|
|
update.remoteHandle = CXHandle(type: .phoneNumber, value: call.remotePhoneNumber)
|
|
|
|
|
update.hasVideo = call.hasVideo
|
|
|
|
|
|
|
|
|
|
update.supportsHolding = false
|
|
|
|
|
update.supportsGrouping = false
|
|
|
|
|
update.supportsUngrouping = false
|
|
|
|
|
update.supportsDTMF = false
|
|
|
|
|
|
|
|
|
|
// Report the incoming call to the system
|
|
|
|
|
provider.reportNewIncomingCall(with: call.localId, update: update) { error in
|
|
|
|
|
/*
|
|
|
|
|