Skip to content
This repository has been archived by the owner. It is now read-only.

Spotify Web Api playback for smartphone devices does not work when spotify app is backgrounded #1171

Open
liamtrampota opened this issue Feb 21, 2019 · 4 comments

Comments

@liamtrampota
Copy link

@liamtrampota liamtrampota commented Feb 21, 2019

Issue found on February 19th 2015.

Endpoint(s):

PUT https://api.spotify.com/v1/me/player/play
GET https://api.spotify.com/v1/me/player/devices

Scope(s):

user-modify-playback-state
user-read-playback-state

Steps to reproduce:

  1. Open Spotify App on your smartphone
  2. Minimize (Background) Spotify App
  3. Get smartphone's Spotify device_id (GET https://api.spotify.com/v1/me/player/devices)
  4. Play a song using PUT https://api.spotify.com/v1/me/player/play with your smartphone's device_id from step 3

Expected behaviour:

Playback should resume from Spotify App

Actual behaviour:

Playback does not resume until Spotify is re-opened

@timothy3001
Copy link

@timothy3001 timothy3001 commented Mar 13, 2019

We have got a similar issue: When the smartphone is locked, not used in a certain period of time and the playback queue in spotify finishes then the connection between the Spotify platform and the device is lost.

The device somehow goes offline immediately after finishing the last song in the queue and is not accessible anymore via Spotify Web Api until you restart the Spotify App on the smartphone.

Loading

@ClaudioTF
Copy link

@ClaudioTF ClaudioTF commented May 21, 2019

For us, on iOS devices in particular, if you pause playback for less than 6 seconds, then resume, the playback resumes correctly when Spotify app is minimized. But if you pause for longer, playback does not resume until Spotify app is foregrounded again. The Spotify web player at https://open.spotify.com does not have this limitation, and you can pause for any length of time, and resume, and playback will correctly resume from the still backgrounded Spotify app on the iOS device. So it is possible, but it is not documented how.

Loading

@themangomago
Copy link

@themangomago themangomago commented Mar 17, 2020

Nice! 5 year later. This issue is still being around. @thelinmichael anyone at spotify cares?

Loading

@samrollin1
Copy link

@samrollin1 samrollin1 commented Mar 19, 2020

Anyone found the solution for this? I am experiencing the same issues and would love to find a solution.

Loading

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
5 participants