Spotify-SDK-Swift-Tutorial-Part-One
Spotify-SDK-Swift-Tutorial-Part-One copied to clipboard
Not playing music
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!
Did anyone find a solution, have the same issue though...
I'm having the same issue as well.
@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
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.