Closed MarcoCatalan closed 5 years ago
Hi @MarcoCanalcar
I've tried the CallKit quickstart but couldn't reproduce the audio issue. My environments: the latest Voice iOS SDK, iPhone 7+, iOS 12.2.
Back to your original question, the 3.0 SDK does have the equivalent code to configure the audio device and AVAudioSession in preparation of the outgoing or incoming calls. For more information please check out the CallKit migration (2.0 to 3.0) guide.
Thanks, -bobie
Hello @bchen-twilio,
Thanks for looking into this, I will try replicating the issue with the quickstart code and report my results.
Hello, It seems that after testing with the quickstart it works fine. I'll close the issue since it seems to be something in my code.
Thanks!
Description
In previous version of this library (2.X), there was a workarround on reportNewIncomingCallWithUUID which called
[TwilioVoice configureAudioSession];
According to https://forums.developer.apple.com/message/169511 this is done there instead of on performAnswerCallAction to avoid a race condition which throws a AVAudioSessionErrorCodeMissingEntitlement.This workaround is no longer present on the 3.X code samples, and I found that something very similar occurs, when I receive a call, sometimes I get no audio.
Steps to Reproduce
Code
I am testing this with my own code, forked from this quickstart, but with no significant differences. I believe this issue would also affect the quickstart sample code
Expected Behavior
The call should have audio
Actual Behavior
The call has no audio
Reproduces How Often
About 70% of the times I tested
Logs
Versions
Voice iOS SDK
3.0.0-beta8
Xcode
10.1
iOS Version
10.3.3
iOS Device
iPhone 5c