FAQ of ProPTT2 SDK

Belows are FAQs of ProPTT2 SDK.

Setup

iOS

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 ]
https://developer.apple.com/library/content/qa/qa1938/_index.html
[ Forum Thread ]
https://forums.developer.apple.com/thread/50106
[ About iOS 11 ]
https://info.stack8.com/blog/jabber-before-and-after-ios-10-apple-push-notifications-support
But now iOS don't support the previous VoIP socket.

Build

API

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.

Operation