Announcements

Help Wizard

Step 1

NEXT STEP

Open Spotify URI on iOS app without autoplaying or affecting playback

Open Spotify URI on iOS app without autoplaying or affecting playback

I am using the following Swift code to open a Spotify URI on iOS, which always autoplays the track:

 

let spotifyURI = "spotify:track:<some track uri>"

if let url = URL(string: spotifyURI) {

    UIApplication.shared.open(url)

}

 

Is there a way to open Spotify without affecting the current playback state in any way? I would like to allow my app's users to jump to track information in the Spotify app without ruining what track is currently playing. I've tried using the open.spotify.com/... URL type but that leads to the same issue.

Reply
0 Replies

Suggested posts

Let's introduce ourselves!

Hey there you,   Yeah, you! 😁   Welcome - we're glad you joined the Spotify Community!   While you here, let's have a fun game and get…

ModeratorStaff / Moderator/ 4 years ago  in Social & Random