Announcements
Happy Values Week! Today we celebrate *Respect* in the Spotify Stars Program!

Help Wizard

Step 1

NEXT STEP

FAQs

Please see below the most popular frequently asked questions.

Loading article...

Loading faqs...

VIEW ALL

Ongoing Issues

Please see below the current ongoing issues which are under investigation.

Loading issue...

Loading ongoing issues...

VIEW ALL

iOS SDK Unable to Authenticate Offline

iOS SDK Unable to Authenticate Offline

Just about all the documentation I have seen says that to successfully authorize a user while offline, the following conditions have to be met:

  • Your application has successfully connected to Spotify within the last 24 hours
  • Your application uses the same redirect URI, client ID and scopes when connecting to Spotify

However, I have not been able to actually do this. I create an issue in the ios-sdk github repo with the following information

------

When I get the access token and there is internet connection, I get a URL back in the following format

my-app-name//spotify-login-callback/?spotify_version=8.7.84.360#access_token=ReallyLongAccessToken&token_type=Bearer&expires_in=3600

If I run the same flow without internet connection, I get back the same thing, sans token.

my-app-name://spotify-login-callback?spotify_version=8.7.84.360

I was under the impression that as long as I have authenticated before on the device, I would be able to then authenticate offline. Was the Spotify app made incompatible with the SDK? Or is there a different way to go about offline auth

Reply
0 Replies

Suggested posts