Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Can't authorize with Spotify app #20

Open
jackthmp opened this issue Jan 15, 2018 · 6 comments
Open

Can't authorize with Spotify app #20

jackthmp opened this issue Jan 15, 2018 · 6 comments

Comments

@jackthmp
Copy link

Thanks guys for this awesome library! I'm not sure if this is a bug or I just didn't set up the app right, however I followed all instructions in the readme.

Description

When the Spotify app is installed, SpotifyLogin does not obtain a valid session after redirecting from the Spotify app.

Versions

iOS 11.1
Spotify 8.4.28

Severity

Minor

Steps to Reproduce

  1. User taps login button (provided by SpotifyLogin)

Actual behaviour

Spotify app opens, popup says "...Authorizing" and then a check mark. Redirects back to app, however an active session is not present.

Expected behaviour

Should create an active session with an auth token after redirecting

@nagarajaghantasala
Copy link

I am also facing the same issue after I migrated to swift4.

I didn't find any proper documentation to complete support for swift4, which means for Spotify Login session, to get Spotify user details, etc...

@Glockx
Copy link

Glockx commented Mar 20, 2018

I also have an exactly same issue. For 2 days, still, I haven't figured out how to solve the problem.

@mateusz-suchowiecki
Copy link

I have the same issue in my project. I think the problem is that you don't add an redirect url to spotify developers dashboard. Example, if you have redirect url like "myapp-spotify://" you have to add this url to spotify app settings. For me this trick solve the problem.

@VedantVarshney14
Copy link

VedantVarshney14 commented Jan 10, 2020

I am having the same problem; the app opens Spotify but a successful login notification is not sent upon redirect.
I have added the redirect URL in the Spotify whitelist, but the problem persists

@g30r93g
Copy link

g30r93g commented May 23, 2020

Anyone else found the solution? I'm still having this issue

@logangeorge01
Copy link

It's because SceneDelegate replaced AppDelegate so the function for when the app returns from Spotify in AppDelegate isn't called. Follow the steps here to go back to using AppDelegate in your project and then it works.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants