2

I have integrated CallKit successfully and I'm trying to handle the video button. In some devices, I get the enabled video button and can request to open a video connection. But for some devices, I get a disabled video icon. What could be the reason for that?

private lazy var provider: CXProvider = {
 let configuration = CXProviderConfiguration()
 configuration.supportsVideo = true
 configuration.maximumCallGroups = 2
 configuration.maximumCallsPerCallGroup = 4
 configuration.includesCallsInRecents = false
 configuration.supportedHandleTypes = [.generic]
 return CXProvider(configuration: configuration)
}()
func reportIncomingCall() {
 let uuid = UUID()
 let update = CXCallUpdate()
 update.supportsGrouping = true
 update.supportsHolding = true
 update.remoteHandle = CXHandle(type: .generic, value: "Name")
 update.hasVideo = true // or false
 provider.reportNewIncomingCall(with: uuid, update: update) { [weak self] error in
 // handle 
 }
}

enter image description here

Note: Whatsapp has the enabled video button in the same device.

asked Feb 13, 2024 at 3:50
7
  • Did you try removing 'update.hasVideo' assignment from the reportIncomingCall() function altogether since you're always setting it to true. Commented Feb 21, 2024 at 9:59
  • Hey @iOSDeveloper, Yes I did and there's no difference from that. Commented Feb 22, 2024 at 8:18
  • Check the video permission for you app in the settings. Commented Feb 26, 2024 at 1:02
  • Hey @ChetanA, which permission exactly are you referring to? Commented Feb 26, 2024 at 1:33
  • As you have highlighted the example of Whatsapp in your question, I would suggest you to check the permission of both the Watsapp and your application on the device. If you disable the Microphone and Camera then you will not be able to make video calls and button would be disabled. Commented Feb 26, 2024 at 10:15

0

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.