Post

Replies

Boosts

Views

Activity

[Callkit] Report call end fail
We call reportCall(with:, endedAt:, reason:) to end the call, mostly CXCallObserverDelegate func - (void)callObserver:(CXCallObserver *)callObserver callChanged:(CXCall *)call; will be called immediately with call end event. But sometimes not like this, it will not callback, and after more then 20 seconds, CXProviderDelegate func provider(_ provider: CXProvider, perform action: CXEndCallAction) will be call. It seems not expected, and will cause callkit UI not disappear in a long time. So hy call end event not be call immediately by CXCallObserverDelegate func?
1
0
21
27m
Callkit pannel Video button gray out
When use callkit, video button in callkit pannel is abnormal. Here are some case: iOS117 & incoming call: video button disable iOS17 & outgoing call: video button disable iOS16 & incoming call: video button enable iOS16 & outgoing call: video button disable will appricate for help! Core code: private func configureCallKit() { let configuration = CXProviderConfiguration(localizedName: "CallkitTesting") configuration.supportsVideo = true // 是否支持视频通话 configuration.supportedHandleTypes = [.generic] configuration.maximumCallGroups = 1 configuration.maximumCallsPerCallGroup = 1 provider = CXProvider(configuration: configuration) provider.setDelegate(self, queue: nil) } func startOutgoing() { let handle = CXHandle(type: .generic, value: "!!!!!!") let startCallAction = CXStartCallAction(call: UUID(), handle: handle) let transaction = CXTransaction(action: startCallAction) CXCallController().request(transaction) { error in if let error = error { print("Error requesting transaction: \(error.localizedDescription)") } else { print("Transaction requested successfully") } } }
2
1
793
Mar ’24
[Callkit] Report call end fail
We call reportCall(with:, endedAt:, reason:) to end the call, mostly CXCallObserverDelegate func - (void)callObserver:(CXCallObserver *)callObserver callChanged:(CXCall *)call; will be called immediately with call end event. But sometimes not like this, it will not callback, and after more then 20 seconds, CXProviderDelegate func provider(_ provider: CXProvider, perform action: CXEndCallAction) will be call. It seems not expected, and will cause callkit UI not disappear in a long time. So hy call end event not be call immediately by CXCallObserverDelegate func?
Replies
1
Boosts
0
Views
21
Activity
27m
Callkit pannel Video button gray out
When use callkit, video button in callkit pannel is abnormal. Here are some case: iOS117 & incoming call: video button disable iOS17 & outgoing call: video button disable iOS16 & incoming call: video button enable iOS16 & outgoing call: video button disable will appricate for help! Core code: private func configureCallKit() { let configuration = CXProviderConfiguration(localizedName: "CallkitTesting") configuration.supportsVideo = true // 是否支持视频通话 configuration.supportedHandleTypes = [.generic] configuration.maximumCallGroups = 1 configuration.maximumCallsPerCallGroup = 1 provider = CXProvider(configuration: configuration) provider.setDelegate(self, queue: nil) } func startOutgoing() { let handle = CXHandle(type: .generic, value: "!!!!!!") let startCallAction = CXStartCallAction(call: UUID(), handle: handle) let transaction = CXTransaction(action: startCallAction) CXCallController().request(transaction) { error in if let error = error { print("Error requesting transaction: \(error.localizedDescription)") } else { print("Transaction requested successfully") } } }
Replies
2
Boosts
1
Views
793
Activity
Mar ’24