brim-borium / spotify_sdk

Flutter Package to connect the spotify sdk
https://pub.dev/packages/spotify_sdk
Apache License 2.0
153 stars 82 forks source link

[iOS] Spotify_sdk player's requests NEVER come back with their callbacks. #150

Closed irfan-429 closed 2 years ago

irfan-429 commented 2 years ago

Is this a native Spotify SDK issue No

Are you using a Free or Premium Spotify account Premium

Expected behavior Spotify_sdk must respond with a callback when I perform actions like play/pause/getPlayerState on a song.

Describe the bug Pre-issue: I was facing an issue like this and I try to solve his way but it didn't solve. I also tried with this way around where I added a wrong spotifyUri while connecting using SpotifySdk.connectToSpotifyRemote() and it worked!! i.e., Spotify app didn't played song automatically after adding wrong spotifyUri.

Actual/current issue: When I perform actions like play/pause/getPlayerState on a song, my requests go but they NEVER come back with their callbacks after few successful requests. Rather my all queued requests respond back suddenly when I switch from the app to Spotify App. See the screen shot below:

Steps to Reproduce Steps to reproduce the behavior:

  1. Followed iOS quick start documentation
  2. Connect to Spotify remote with/without accessToken but with a wrong spotifyUri as a param
  3. Play and keep playing different songs one by one
  4. After few successful attempts, you won't be able to perform further actions on a song

Screenshots logs screenshot, Project dir structure, Xcode dir structure

Spotify_sdk Flutter package version spotify_sdk: ^2.2.0

Target Platform, Version & Device

Development OS

irfan-429 commented 2 years ago

@fotiDim - Can you please check my query? It'd be much helpful to meet my deadline.

fotiDim commented 2 years ago

@irfan-429 some clarifications needed:

Also how are you sure that this is not a native Spotify SDK issue?

fotiDim commented 2 years ago

Closing due to lack of feedback. If the issue persists please report back.