I've created an example app to demonstrate my problem. It can be found here: https://github.com/egeniq/ptt-audio-activation-test-ios
To reproduce, do the following:
Change team selection in Xcode.
Run the app.
Choose join.
Tap on the "Set remote participant NOW" button.
See in the log output that the audio session gets activated.
Tap on the "Clear remote participant" button.
See in the log output that the audio session gets deactivated.
Tap on the "Set remote participant after 5s" button.
Immediately go back to your phone's homescreen.
After 5s see in the log output that the remote participant is successfully set.
However also note that no audio session activation occurs.
Topic:
App & System Services
SubTopic:
General
Tags: