Announcements

Help Wizard

Step 1

NEXT STEP

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

Let's introduce ourselves!

Hey there you,   Yeah, you! 😁   Welcome - we're glad you joined the Spotify Community!   While you here, let's have a fun game and get…

ModeratorStaff / Moderator/ 4 years ago  in Social & Random