Music and the iPad

I would like to have some background music going while I study but the music just shuts off every time. I use Spotify and the beats to study to playlist.

Which version of the app are you using?