Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No Open Intent to Login on Spotify #29

Open
vitorgja opened this issue Mar 3, 2020 · 1 comment
Open

No Open Intent to Login on Spotify #29

vitorgja opened this issue Mar 3, 2020 · 1 comment

Comments

@vitorgja
Copy link

vitorgja commented Mar 3, 2020

No open Intend to Login on Spotify,
i writed code below:

const config = {
      refreshSafetyMargin: 60,
      clientId: '<<MY CLIENT ID>>',
      redirectUrl: 'myapp://callback',
      scopes: ['streaming', 'playlist-read-private', 'user-read-email', 'user-read-private'],
      tokenExchangeUrl: 'https://myapp.herokuapp.com/exchange',
      tokenRefreshUrl: 'https://myapp.herokuapp.com/refresh',
};
cordova.plugins.spotifyAuth.authorize(config)

the method authorize return the error "auth_failed" on subscribe.

already checked clientId, CLIENT_ID, CLIENT_SECRET and CLIENT_CALLBACK_URL

@duffdean
Copy link

duffdean commented Apr 1, 2020

Getting the same issue here too.
Works fine on iOS but doesn't load Spotify login screen on Android.

Console error:
auth_failed: Received authentication response of invalid type error at file:///android_asset/www/plugins/cordova-spotify-oauth/www/build/spotify-oauth.min.js:2:5374

Was able to resolve issue by referring to comments made in this issue - Works in emulator, fails on real device #10
The reason why the LoginActivity fails is because Spofity rejected the request as no SHA1 fingerprint for the app existed.

Go to your Spotify developer console and add the Android Package Name and SHA1 Fingerprint (one for development, one for production)

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

No branches or pull requests

2 participants