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

Urgent issue with song playing (iOS)

Urgent issue with song playing (iOS)

We have the Spotify Web Api configured and we are getting songs and displaying them in our app, that’s fine. Now, we want to play part of the song without going to into the Spotify app. I know that we can play songs through web api, but it requires premium and is not available on mobile, so this is not an option.

 

Are there any solutions? Or calling app remote function authorizeAndPlayURI is the only option we have?

 

Btw, our functionality is the exact same as Tinder's song "Anthem" feature. User can attach a song to their profile and other users can click on it to play the song partially. If user wants to play the full song, they'll have to press "Play Full Song" and then be taken into the Spotify app. 

Reply
3 Replies

Hey @Larson2, thanks for your post!

In this case, you can use the preview_url returned by the Web API. Then just add a full link to the content (also provided by the Web API) to have the user be taken to the Spotify app (https://developer.spotify.com/documentation/general/guides/content-linking-guide).

Let me know if that helps! 🙂

Have a great day,
Hubo
HuboSpotify Star
Help others find this answer and click "Accept as Solution".
If you appreciate my answer, maybe give me a Like.
Note: I'm not a Spotify employee.

Hey Hubo! Thanks for your answer! Let me know if I got you right: we can play a shortURL through Web API, but if we want to play a full song we should open in it Spotify, is that correct?

Hey!

Spot on. The Web API returns a preview_URL when available and you can redirect the user to Spotify for the full track. 🙂

Let me know if you have any other questions.

Thanks,
Hubo
HuboSpotify Star
Help others find this answer and click "Accept as Solution".
If you appreciate my answer, maybe give me a Like.
Note: I'm not a Spotify employee.

Suggested posts