brim-borium/spotify_sdk

Using spotify_sdk: flutter package unable to connect with spotify using SpotifySdk.connectToSpotifyRemote() method.

Kaustubhs10 opened this issue · 0 comments

!! 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?
Yes
If you answered "Yes" then your issue belongs to the native SDK repo and not here.

Have you searched for existing issues?
Yes

Are you using a Free or Premium Spotify account?
Free

Are you aware of the limitations of Free Spotify accounts?
Yes

Expected behavior
AppRemote: Failed to authenticate with the Spotify app. AppRemote: Failed to establish a sesssion with error: Error Domain=com.spotify.app-remote.wamp-client Code=-1001 "wamp.error.authorization_failed" UserInfo={details={ message = "Authentication failed with unknown reason."; Showing this error for iOS platform in flutter.Can anyone help to establish connection with spotify to play songs. FYI:Spotify app already installed and song playing in background for connection.

Describe the bug
AppRemote: Failed to authenticate with the Spotify app. AppRemote: Failed to establish a sesssion with error: Error Domain=com.spotify.app-remote.wamp-client Code=-1001 "wamp.error.authorization_failed" UserInfo={details={ message = "Authentication failed with unknown reason."; Showing this error for iOS platform in flutter.Can anyone help to establish connection with spotify to play songs. FYI:Spotify app already installed and song playing in background for connection.

initSpotifyiOS() async { await SpotifySdk.connectToSpotifyRemote( clientId: 'clientID', redirectUrl: 'spotify-ios-quick-start://spotify-login-callback', scope: 'app-remote-control,user-modify-playback-state,playlist-read-private,playlist-read-private,playlist-modify-public,user-read-currently-playing', spotifyUri: "", ); }

I am using this method for remote connection.

Steps to Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Screenshots
If applicable, add screenshots to help explain your problem.

Spotify_sdk Flutter package versionspotify_sdk: ^2.3.1
Check you pubspeck.lock file to verify the exact version [e.g 2.1, commit ID]

Target Platform, Version & Device

  • OS & Version: iOS(16.1.1)
  • Browser & Version (if applicable) [e.g. Safari 15, Chrome 22]
  • Device: iPhone11

Development OS

  • OS: MacOS

Additional context
Add any other information about the problem here.