FAQ of ProPTT2 SDK
Belows are FAQs of ProPTT2 SDK.
Q. In background mode, we can't hear PTT voice received from other user.
iOS don't support the background network communication. They recommanded to use PushKit. But it would be not a suitable architecture for real-time PTT. And it can not be used in an enterprise environment(private network).
[ Technical Q&A ]
[ Forum Thread ]
[ About iOS 11 ]
But now iOS don't support the previous VoIP socket.
Q. How can I record PTT voice?
You can use "OnTrackDataRendered" event for it. In the event, TrackDataBuffer has a PCM frame. So audio file would be a wave file format. When PTT is locked, you need to create wav file and write WAVE Header. And in each "OnTrackDataRendered" event, you have to append the PCM into the file.
If you can use OPUS decoder, you can record OPUS audio to be received with "OnTrackDataReceived" event.
Please refer with the advanced guide.