How to pause/stop all active audio playbacks when my application needs to start audio playback from background?

Intention: Our application goes to background (background audio playback enabled) > We open any iOS application that starts audio playback (i.e: youtube, or music player) > after some moments, our application activates it's audio session to start playingback some audio (while our application is still alive in the background)


What We tried: When our application wants to play the audio from background, it set's the AVAudioSession category to AVAudioSessionCategoryPlayback.



Expectation: The current foreground application with active audioplayback will pause it's audio playback, and our application's playback will be the only sound that would be heard.


Observation:The current foreground application keeps playing it's audio session. And our application fails to activate audiosession (from background) with non-mixable AVAudioSessionCategoryPlayback.


Counter measure that We tried: With the above category, we also set AVAudioSession Options AVAudioSessionCategoryOptionMixWithOthers | AVAudioSessionCategoryOptionDuckOthers . After this, when our application tries to play audio from background, it is heard to be playing along with the foreground active audio application.


Is there anyway where we can play audio from background using our application only, and all the other active audio playbacks would be stopped?