I'm implementing CallKit support inside a VoIP application.
I was able to disable video button by setting supportsVideo
to false
in CXProviderConfiguration
. Now the FaceTime button appeared.
I wanted to know if there is a way to disable FaceTime button in the default UI, since the app is handling internal enterprise numbers which has nothing to do with FaceTime.
Update:
As stated in the answers below, it's possible to disable the button, but the caller number is lost (shown as Unknown
). I want to preserve the number and disable the FaceTime button.
Update: Disabling FaceTime in iPhone settings disables the FaceTime button. However it's not a valid solution to the issue.
Update:
Any changes to CXHandle
type, including inserting characters not valid for a phone number into it, does not affect the issue - FaceTime button is still shown.
In a good news/bad news vein, I was able to disable the FaceTime button by clearing
remoteHandle
(not removed or hidden, just grayed out).However, as a side effect, the Caller shows up as "Unknown", if you don't set the
localizedCallerName
property of theCXCallUpdate
.A call without a handle will have the side effect of not being pressable in Recents.