Announcements

Help Wizard

Step 1

NEXT STEP

FAQs

Please see below the most popular frequently asked questions.

Loading article...

Loading faqs...

VIEW ALL

Ongoing Issues

Please see below the current ongoing issues which are under investigation.

Loading issue...

Loading ongoing issues...

VIEW ALL

Development of native app with playback in background

Solved!

Development of native app with playback in background

Dear Spotify,
we are currently in the prototyping phase of a new app (Android/iOS), which allows the playback of selected playlists/albums/tracks of spotify.
To do this job, one can use either the Web Playback SDK or the native SDKs for Android or iOS. However, the Web Playback SDK does not allow playbacks when the app is put into background.
We discovered this would be possible using the native SDKs. Because the native SDKs are using the Spotify App for playback, we get a Spotify notification at the lockscreen when pushing our native app into background. By tapping on this widget we get directed into the Spotify app.

In general, we would like to build a native playback without the possibility, to might get into the Spotify app (e.g. notification on lockscreen). Is it possible to prevent this lockscreen behaviour or is there another possibility to create a local player inside our app?

Yours sincerely
Patrick

Reply

Accepted Solutions
Marked as solution

Unfortunately this is one of the use cases that we don't support today. The background play limitations with Web Playback SDK is imposed by the browsers, not by the SDK itself. The mobile SDKs work as remote controllers of the Spotify app itself. The only alternative is to use the Player API, but that doesn't solve your issue around the lock screen. 

View solution in original post

4 Replies

I have a very similar problem. Have you already found a solution for this?!

+1

Do you have any feedback for us spotify team?

Marked as solution

Unfortunately this is one of the use cases that we don't support today. The background play limitations with Web Playback SDK is imposed by the browsers, not by the SDK itself. The mobile SDKs work as remote controllers of the Spotify app itself. The only alternative is to use the Player API, but that doesn't solve your issue around the lock screen. 

Suggested posts