Announcements

Help Wizard

Step 1

NEXT STEP

iOS SDK Auth always fails

iOS SDK Auth always fails

Plan

Family Premium

Country

Russia & Italy

Device
iPhone 8

Operating System

iOS 15.6.1

 

My Question or Issue

Hi guys. I develop the iOS app which use Spotify Auth. I use iOS SDK. I read Spotify guide, I read various articles, I watched videos on YouTube, I even launched other people’s projects - authorization fails everywhere. Spotify opens, shows "X" and then in the logs I see "An unknown error has occurred"
I tried logging in like this:

appRemote.authorizeAndPlayURI("")
// I also tried this
sessionManager.initiateSession(with: scopes, options: .clientOnly)

but the result is the same everywhere
my info.plist is correct and Spotify Dashboard App is configured correctly (bundle ID and Redirect URI are correct) 

info.plist

<key>LSApplicationQueriesSchemes</key>
<array>
    <string>spotify</string>
</array>
<key>CFBundleURLTypes</key>
<array>
    <dict>
        <key>CFBundleURLName</key>
        <string>com.blaBlaBla.blaBlaBla</string>
        <key>CFBundleURLSchemes</key>
        <array>
            <string>blaBlaBla</string>
        </array>
    </dict>
</array>

I also added my Spotify account to users list for auth in development mode. But still no results
What i do wrong?

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