I looked around and found vaguely similar questions but nothing quite the same...I do apologize if I missed the answer somewhere.
I am finishing up a game I wrote in Swift using SpriteKit.
Most other games that I've played, I can have itunes or something playing music in the background, and still hear it while I am playing a game.
As I am playing my game, I'm noticing that it automatically shuts of the audio from other apps.
I am not using
AVAudioSession category to
import AVFoundation.AVAudioSession AVAudioSession.sharedInstance().setCategory(AVAudioSessionCategoryAmbient, error: nil)
This category is also appropriate for “play along” style apps, such as a virtual piano that a user plays while the Music app is playing. When you use this category, audio from other apps mixes with your audio. Your audio is silenced by screen locking and by the Silent switch (called the Ring/Silent switch on iPhone).