opentok / CallKit

A sample app to demonstrate how to integrate Apple CallKit into OpenTok iOS SDK
MIT License
110 stars 24 forks source link

Dismissing call banner when source cancels the call. #31

Closed jonathanbenavides-oviva closed 3 years ago

jonathanbenavides-oviva commented 3 years ago

Hi everyone 👋,

how can I dismiss the banner when the source cancels the call? OpenTok automatically does it when we create an OTSession. Unfortunately, when using CallKit we cannot create the session until the call is answered.

According to the Apple docs we have to call reportCall(with:endedAt:reason:) with reason CXCallEndedReason.remoteEnded

Is there a way with OpenTok to know when the source hangs out the call before being answered?

Banner

Thank you!