android-sdk icon indicating copy to clipboard operation
android-sdk copied to clipboard

Queue behaves differently than iOS SDK

Open cjam opened this issue 5 years ago • 0 comments

Hey Spotify Team,

I'm writing a react-native wrapper of this library and the ios-sdk (react-native-spotify-remote). I have most functionality implemented in both iOS and Android, and have an example app to exercise all of the exposed functionality to make sure things work properly. What I discovered today while trying to integrate it with my android app is that the queue works quite differently in the android-sdk than it does in the ios-sdk.

Issue found on June 11, 2020.

SDK Version: 0.7.0

OS Version: Android 5.0.2

Scope(s): remote

I've investigated the behaviour using my example app in iOS and Android. Basically, queuing a song from iOS vs Android ends up with different results. I've taken screen shots to show the differences.

First, have a song playing in Spotify.

initial-song-playing

iOS

  1. Using the ios-sdk queue a song
Screen Shot 2020-06-12 at 7 45 09 AM
  1. Using the ios-sdk queue another song
Screen Shot 2020-06-12 at 7 45 44 AM

In iOS, the queued songs are added to the "Next Up" queue in a last-queued-first-up order.

Android

  1. Using the android-sdk queue a song
Screen Shot 2020-06-12 at 7 53 05 AM
  1. Using the android-sdk queue another song
Screen Shot 2020-06-12 at 7 53 25 AM

In Android, the queued songs are added to the "Next In Queue" queue in a first-queued-first-up order.

Expected behaviour:

I would expect the SDK's to behave the same way. Ideally for me and my application, I would like it to behave like iOS, however I could see the use case for both. I could see both methods of queuing being useful. In my application, I'm relying on being able to add to the Next Up queue with the last-queued-next-up order. So Unfortunately my Android app is broken until I figure out how to sort this out.

Actual behaviour:

Android and iOS queue songs in different ways with very different orders.

cjam avatar Jun 12 '20 15:06 cjam