How can I set AVAudioSession for iOS apps to allow device/apps to continue audio playback?

i just found a way to invoke that function without modifying the engine, by using an observer ios class.