Spotify login error INVALID_CLIENT: Invalid redirect URI android

Krunal Shah picture Krunal Shah · Dec 8, 2014 · Viewed 15.4k times · Source

I am making an application which contain spotify integration, I was followed this link https://developer.spotify.com/technologies/spotify-android-sdk/tutorial/

by the reference of this link I was put "festevo://callback" as callback redirect URI

when I was trying login into spotify every time I was getting same error.

<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />

    <data
           android:host="callback"
           android:scheme="festevo" />

Please tell me why this happen...

Thank you.

Answer

Michael Thelin picture Michael Thelin · Dec 8, 2014

I see a couple of possible things that could've gone wrong:

  • It's as simple as that you didn't save the redirect URI after you typed it in. (Double-check My Applications.)
  • You didn't specify it properly in your application's manifest. (Double-check the manifest part in the tutorial)
  • You didn't change the REDIRECT_URI value to festevo://callback as specified in the tutorial.

Hope this solves your issue!