Search code examples
apiandroid-studiospotifysha1

Logging in on Android Spotify API returning INVALID APP ID


Whenever I try to login to Spotify through my Android app on my emulator/phone using the Android API, I get the "INVALID APP ID" error.

I've tried...

  1. getting the SHA1 from terminal

    keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android

  2. getting SHA1 from Android Studio following the steps provided in the answer here (which happen to be the same SHA1 fingerprint anyway.

  3. recreating the app on my Spotify Dashboard and re-inserting the Client ID, Secret ID, callback, etc.

  4. switching from GenyMotion emulator to physical android phone

  5. going into the Android Studio gradle and switching "signingConfigs.release" to "signingConfigs.debug" because I heard SHA1 changes on release (not sure if it's applicable here though)

... but none of these solutions worked.

It used to work before, but I'm not sure what's changed since.


Solution

  • Are these two fields filled in?

    If I'm not mistaken 'INVALID APP ID' or 'INVALID URL' means you either have different APP ID / URL in the developer settings or none at all.

    Devloper console