3

Is there a way to disable Add Call option from Callkit when receiving a VoIP call?

I couldn't find any api to disable this. But WhatsApp disabled this feature.

Léo Natan
  • 56,823
  • 9
  • 150
  • 195
RJV Kumar
  • 2,408
  • 1
  • 19
  • 28

2 Answers2

27

You need to set both supportsGrouping, supportsUngrouping and supportsHolding properties to false in the CXCallUpdate, and set maximumCallGroups and maximumCallsPerCallGroup to 1 in your CXProviderConfiguration.

MikeGer
  • 391
  • 2
  • 4
  • 1
    This should be the accepted answer. It should be noted, though, that this configuration also hides the "hold-and-accept" option with call-waiting. It also prevents you from supporting any other functionality (like "assisted transfer") that depends on placing a call on hold. There doesn't seem to be a permutation of `CXProvider` / `CXCallUpdate` settings that _only_ disables the "add-call" button. If someone does know a workaround I'd be most grateful :) – Reid Oct 04 '17 at 17:04
14

Set the supportsGrouping, supportsUngrouping and supportsHolding properties to false in the CXCallUpdate for the call.

RvdB
  • 868
  • 7
  • 7
user102008
  • 30,736
  • 10
  • 83
  • 104
  • Thanks for your answer. I will test and update the results. – RJV Kumar Oct 25 '16 at 06:28
  • 3
    Actually this is not enough. You also need to set `maximumCallGroups` and `maximumCallsPerCallGroup` to 1. The answer below should be accepted. – user1256821 Nov 11 '16 at 12:56
  • Can I open my custom app on answering the VoIP phone call? Please know me since I don't have iOS development experience. But curious to know this. – Choxx Jan 19 '17 at 11:14