Closed liyamahendra closed 1 year ago
Hi @liyamahendra
Any chance you were able to see the detail in the Xcode debugger when the exception happened? From the stack in the screenshot very likely the exception was raised because audio device was assigned while the media factory already had been assigned with an audio device.
Any chance you were able to see the detail in the Xcode debugger when the exception happened?
I can connect my device to Xcode and check the stack trace, if that would help?
From the stack in the screenshot very likely the exception was raised because audio device was assigned while the media factory already had been assigned with an audio device.
What does that mean please?
@liyamahendra if this is reproducible in your local dev environment with Xcode debugger attached, you should be able to see from the debug messages, which should have the information about the exception.
The SDK keeps a reference to the audio device internally and does not allow assigning another audio device while there is already one. This is very likely the cause of the exception based on the stacktrace in your screenshot. Please make sure there is no more than one TwilioVoiceSDK.audioDevice = yourAudioDevice
in the application.
Description
When the app is in terminated state, and an incoming call is received, the app correctly detects the incoming call. But as soon as you try to connect, the app crashes. See the crash details from TestFlight, I see that it crashed at this line
Steps to Reproduce
PKPushRegistry
is properly registered and app can receive incoming callsCode
Expected Behavior
App should not crash when trying to accept the incoming call, even when the call is accepted from terminated state
Actual Behavior
The app crashes when the incoming call is accepted from terminated state
Reproduces How Often
All the time, consistently.
Twilio Call SID(s)
You can find the Call SID in the SDK from TVOCall.sid or TVOCallInvite.callSid. The Call SID can also be found on the Twilio Calls Console: https://www.twilio.com/console/voice/calls/logs.
Logs
Versions
Voice iOS SDK
6.5.0 via CocoaPods
Xcode
Version 14.2 (14C18)
iOS Version
iOS Version: 16.3
iOS Device
iPhone 12