I am using 'SpotifyiOS' framework recommended by Spotify (
where appRemote
is an instance of SPTAppRemote
It plays a song even if I pass empty String
as URI
as shown below:
How can I authorise app without playing any song using 'SpotifyiOS' famework?
CodePudding user response:
You can use the SPTSessionManager to authenticate without playing a song.
The flow is a bit more convoluted and better followed at the documentation link than copy/pasted here, but in short you configure the SPTSessionManager and provide it a delegate that on successful authentication provides a token to your SPTAppRemote which can then be used to control the application.