I'm running Spotify on iOS 12 and overnight while charging the phone, Spotify appears to suspend/close and resets everything, such as which song in my playlist it was on, where in the song it was, and whether I had chosen random/repeat etc. I also have to open it daily before I get in the car otherwise it won't begin playing music.