I'm implementing Push To Talk functionality on my app. Now I have some trouble after app process is terminated by user.
In my implementation, I download voice file in func channelManager(_ channelManager: PTChannelManager, didActivate audioSession: AVAudioSession)
method. It works fine when app is foreground, and also ok when app is background until app process terminated.
After app process terminated, system displays PTT connection status by blue icon in status bar. Then I got some PTT message from another person, func incomingPushResult(channelManager: PTChannelManager, channelUUID: UUID, pushPayload: [String : Any])
and func channelManager(_ channelManager: PTChannelManager, didActivate audioSession: AVAudioSession)
are called, but download process is not finished and I cannot get voice file.
What is the expected way to download voice file in such case?