Spotify-SDK-Swift-Tutorial-Part-One icon indicating copy to clipboard operation
Spotify-SDK-Swift-Tutorial-Part-One copied to clipboard

Not playing music

Open danigilme opened this issue 5 years ago • 4 comments

After converting the code to Swift 5 (easy to do), it logins correctly but it's impossible to play a song. The functions are not called and if you copy the code of the function and paste it somewhere when it's logged in, the song is not played either.

So I print the error and this is what says:

Error Domain=com.spotify.ios-sdk.playback Code=1 "The operation failed due to an unspecified issue." UserInfo={NSLocalizedDescription=The operation failed due to an unspecified issue.}

So please, it would be incredibly helpful for a lot of people to find any solution to this "simple" thing, that is play a song with Spotify in an app with Swift.

Thanks in advance!

danigilme avatar May 14 '19 11:05 danigilme

Did anyone find a solution, have the same issue though...

azeemohd786 avatar Oct 14 '19 06:10 azeemohd786

I'm having the same issue as well.

BryanWBear avatar Sep 08 '20 17:09 BryanWBear

@BryanWBear Spotify have stopped updating old SDK. From native iOS or any app, we can't play spotify songs, have to go inside their Spotify main app and play songs. Spotify end support to most of features. Limited access provided by spotify at the moment.

Previous Spotify SDK with source code:- https://www.youtube.com/watch?v=KLsP7oThgHU&t=64s

Read more:- https://news.google.com/search?q=Spotify%20will%20end%20support%20for%203rd%20party%20dj%20apps%20on%20July%201st&hl=en-AU&gl=AU&ceid=AU%3Aen

azeemohd786 avatar Sep 09 '20 04:09 azeemohd786

Thanks @azeemohd786 for pointing me here. I wish I had seen your comment sooner before going down this rabbit hole. I'm switching my project over to Apple music, their SDK works a lot better.

BryanWBear avatar Sep 10 '20 03:09 BryanWBear