!! Attention !!
FILL IN ALL SECTIONS OF THIS TEMPLATE OR YOUR ISSUE WILL BE CLOSED WITHOUT INVESTIGATION
This is a flutter package that wraps the native iOS and Android Spotify "remote" SDKs as well as the Spotify Web Playback SDK for web. Since it wraps the native SDKs it has the same features and limitations. Please use the search functionality in the native SDK repos to find corresponding issues before opening an issue here. If your issue is deriving from the native SDKs you should open an issue there and not in this repo.
Is this a how to question?
No
Is this a native Spotify SDK issue?
No
Have you searched for existing issues?
Yes
Are you using a Free or Premium Spotify account?
Premium
Are you aware of the limitations of Free Spotify accounts?
Yes
Expected behavior
I expect getAccessToken to open spotify, ask me to authenticate, and return a string
Describe the bug
Spotify opens, the authentication window brielfy opens and then closes, and shows a check mark.
When I use the web address (which works for web based authentication) as the redirectUrl, it opens the url with the spotify version number and an error "invalid_scope"
When I use the app url scheme as the redirectUrl, spotify opens my flutter app and I get the following error output in flutter:
flutter:
Steps to Reproduce
Steps to reproduce the behavior:
spot2.SpotifySdk.getAccessToken(
clientId: 'entered my client id here',
redirectUrl: 'entered my redirect url here',
scope: "user-library-read");
Screenshots
If applicable, add screenshots to help explain your problem.
Spotify_sdk Flutter package version
Check you pubspeck.lock file to verify the exact version [e.g 2.1, commit ID]
2.3.0
Target Platform, Version & Device
OS & Version: iOS 15.4.1
Device: IPhone XS
Development OS
OS: Mac OS
Additional context
I only have two scopes enabled, user-library-read and the top artists one, but I am only using user-library-read here and it is definitely enabled and works when I auth via web.
I've been trying to make this work all day, some things I tried:
creating a new URL scheme and registering it on the spotify dashboard
Going through the "Setup the iOS SDK" instructions of Spotify iOS SDK Quick Start as instructed, several times.
!! Attention !! FILL IN ALL SECTIONS OF THIS TEMPLATE OR YOUR ISSUE WILL BE CLOSED WITHOUT INVESTIGATION This is a flutter package that wraps the native iOS and Android Spotify "remote" SDKs as well as the Spotify Web Playback SDK for web. Since it wraps the native SDKs it has the same features and limitations. Please use the search functionality in the native SDK repos to find corresponding issues before opening an issue here. If your issue is deriving from the native SDKs you should open an issue there and not in this repo.
Is this a how to question? No
Is this a native Spotify SDK issue? No
Have you searched for existing issues? Yes
Are you using a Free or Premium Spotify account? Premium
Are you aware of the limitations of Free Spotify accounts? Yes
Expected behavior I expect getAccessToken to open spotify, ask me to authenticate, and return a string
Describe the bug Spotify opens, the authentication window brielfy opens and then closes, and shows a check mark.
When I use the web address (which works for web based authentication) as the redirectUrl, it opens the url with the spotify version number and an error "invalid_scope"
When I use the app url scheme as the redirectUrl, spotify opens my flutter app and I get the following error output in flutter: flutter:
Steps to Reproduce Steps to reproduce the behavior:
spot2.SpotifySdk.getAccessToken( clientId: 'entered my client id here', redirectUrl: 'entered my redirect url here', scope: "user-library-read");
Screenshots If applicable, add screenshots to help explain your problem.
Spotify_sdk Flutter package version Check you
pubspeck.lock
file to verify the exact version [e.g 2.1, commit ID] 2.3.0Target Platform, Version & Device
Development OS
Additional context I only have two scopes enabled, user-library-read and the top artists one, but I am only using user-library-read here and it is definitely enabled and works when I auth via web. I've been trying to make this work all day, some things I tried: