I have a native iOS app that is playing an audio preroll in the foreground and have setup the AVSession category to .playback, also I have set the enableBackgroundPlayback property to TRUE on the IMASettings. While the app is in the foreground and the audio is playing a preroll ad, I can switch the hardware mute button to OFF and ON and the audio will continue to play as expected.
If I put the app into the background while the ad is playing a preroll ad, then toggle the hardware mute button while I hear the audio (app is still in the background) and then bring the app back to the foreground, the volume of the audio will appear to be set to 0 or it's muted ... at least that's what appears to be happening. I was expecting that the audio ad would continue to play unmuted once the app has been put into the foreground.
Any solutions?
I noticed that in the following link for Beta v13 it says the following but does not indicate any more explicit instructions:
- Ads are now silenced when the device is silenced by default. The publisher can change this by setting the AVAudioSession category.