FYI, I'm not certain this will actually work correctly. Just like CallKit, the PTT framework needs to handle audio session activation so that it can modify the audio session configuration and then activate the session "itself". That model doesn't really work with a high level API like AVAudioRecorder.
App creates AVAudioRecorder only after didActivate and switch to playAndRecord category. Do you mean AVAudioRecorder can alter some way Audio Session even in that case?
but you should be configuring your session early as possible and specifically before "didActivate". Once the session is activated, it's already to late.
Do you mean app should set playAndRecord category before didActivate? But when? After didBeginTransmitting and before didActivate, right?
Topic:
Media Technologies
SubTopic:
Audio
Tags: