The SPTSession I get back on that method seems correct since it includes the accessToken, refreshToken and expirationDate. Inside that method I do the following:
And that's where it ends. I see a log on the console saying AppRemote: Connecting..., but that's about it. I never get any calls to SPTAppRemoteDelegate nor SPTAppRemotePlayerStateDelegate. Also, SPTSessionManagerDelegate never seems to call the error method either.
This is my setup code (the same provided in the sample app):
The only difference is that I inject to the class that handles all the Spotify related code the clientID, tokenSwapURL and tokenRefreshURL. I'm using 2.1.1 as the SDK version and the Spotify app is 8.9.50.491.
PS: I also tried running the sample app included on the SDK and it doesn't even authorize. Is something really broken somewhere?
I'm implementing the auth flow using
SPTSessionManager
. I have the auth in theory working, but theSPTAppRemote
never ends up connecting.Here's the flow (and where it breaks without any error nor delegate callback):
Start the auth flow:
Then my app is opened by the Spotify iOS app, and I call this method:
Then this delegate method is called, for which I return
true
to let the iOS SDK handle the auth code exchange:Then, when my server made the exchange of the code for an access token, I get this delegate callback:
The
SPTSession
I get back on that method seems correct since it includes theaccessToken
,refreshToken
andexpirationDate
. Inside that method I do the following:And that's where it ends. I see a log on the console saying
AppRemote: Connecting...
, but that's about it. I never get any calls toSPTAppRemoteDelegate
norSPTAppRemotePlayerStateDelegate
. Also,SPTSessionManagerDelegate
never seems to call the error method either.This is my setup code (the same provided in the sample app):
The only difference is that I inject to the class that handles all the Spotify related code the
clientID
,tokenSwapURL
andtokenRefreshURL
. I'm using2.1.1
as the SDK version and the Spotify app is8.9.50.491
.PS: I also tried running the sample app included on the SDK and it doesn't even authorize. Is something really broken somewhere?