opentok / CallKit

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

Hold state is not supported #20

Open bettykinTG opened 5 years ago

bettykinTG commented 5 years ago

When call is put on hold, provider(_ provider: CXProvider, didDeactivate audioSession: AVAudioSession) is called, where you end and remove the call.

This means there is no call to go back to when call is put off hold.

If you supported hold state you would find audio issues with this flow. TokBox won't fix their issue as long as they can't reproduce it on this sample app.

Please fix the sample app. Thank you

(Adding this code in provider(_ provider: CXProvider, didDeactivate audioSession: AVAudioSession) would let you see the errors: guard let call = outgoingCall, !call.isOnHold else { return })