Posts

Post not yet marked as solved
9 Replies
5.5k Views
Our VoIP app uses CallKit and is currently affected by a strange iOS 13 bug on incoming calls when the device is locked. After initializing the AudioSession I get tons of the following error message while trying to access speaker and microphone:[aurioc] 1590: AUIOClient_StartIO failedBefore accessing speaker and microphone I initialize my audiosession in:func provider(_ provider: CXProvider, perform action: CXAnswerCallAction) { ... let session = AVAudioSession.sharedInstance() try? session.setCategory(.playAndRecord, mode: .voiceChat, policy: .default, options: .allowBluetooth) ... }and wait until the folloing function gets called by callkit:func provider(_ provider: CXProvider, didActivate audioSession: AVAudioSession) { .. }This should ensure that the AudioSession is completely intialized. But it doesn't work, I get no audio and the described error message.All incoming calls are working perfectly on iOS12 or earlier and they also work when the iOS 13 device is unlocked. So this problem only occurs on locked iOS 13 devices when getting an incoming call via callkit.WhatsApp audio calls seems to have the same problem. They also don't work on locked iOS 13 Beta devices.It seems like an iOS 13 Beta bug. I can provide you with additional informations, if you need.
Posted
by schafm.
Last updated
.