CallKit CXEndCallAction report to other end - Swift

1.1k views Asked by At

I am implementing Apple CallKit for VOIP. I could successfully show the call screens.

On Answer trigger the below function,

func provider(_ provider: CXProvider, perform action: CXAnswerCallAction){
}

Ans When reject the call triggered the function,

func provider(_ provider: CXProvider, perform action: CXEndCallAction){
}

But, How to know on received side when the sender disconnected call (Not accepted the call).

1

There are 1 answers

0
Zeeshan Ahmed On
  • Brother Callkit is basically a Native UI which you can show up when device receives/starts a VOIP call its only for user interaction, by using it you cannot tell other side about call.
  • You have to make socket emitter which will be emitted in 'CXEndCallAction' method to your server, then your server will inform other side.