Stop another app's background audio
How do I stop background audio from another app? Is it possible without registering my app for background audio?
I have tried
NSError *error; [[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryPlayback error:nil]; [[AVAudioSession sharedInstance] setActive:YES error:&error];
when my app launches, but it doesn't work.
Is there an Amazing Audio Engine setting I need to configure to turn off another app's background audio? Or some other code to run?