Announcements

Help Wizard

Step 1

NEXT STEP

Cannot authenticate with iOS SDK

Solved!

Cannot authenticate with iOS SDK

I am using the Spotify iOS SDK and the Spotify app on my iPhone. iOS 15, Xcode 13.2, iPhone 13 Pro.

 

when calling

 

sessionManager.initiateSession(with: scope, options: .clientOnly)

 

I get redirected to the Spotify app where my authorization fails (I see a cross appearing), Spotify redirects back to my own app and the result url looks like this:

 

...://spotify-login-callback?error=unknown_error&error_description=An%20unknown%20error%20has%20occured&spotify_version=8.6.84.1353

 

 

I have no idea what this means.

I registered:

- the email address of my account

- the bundle id

- the callback url

in the app settings on the Spotify Developer website, and I have zero info on what to look for.

 

Any suggestion as to what to check?

 

Reply

Accepted Solutions
Marked as solution

It was a problem with the callback url.

View solution in original post

1 Reply
Marked as solution

It was a problem with the callback url.

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