title: Record Audio from another app playing in background
body: <p>I'm looking for a way to record audio that's playing in the background from another app. For example, being able to record what Pandora/Spotify is playing. </p>
  
  <p>From what I understand this isn't possible yet Snapchat's latest update supports background audio when recording a video. </p>
  
  <p><a href="https://stackoverflow.com/questions/14122363/iphone-app-allow-background-music-to-continue-to-play/14122449#14122449">This post</a> shows how to allow audio to continue in the background  however as soon as I set <code>[[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryRecord error:nil];</code> the background audio stops immediately. </p>
  
  <p>How does Snapchat allow the background audio to continue while recording? </p>