Queue behaves differently than iOS SDK
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.
iOS
- Using the
ios-sdkqueue a song
- Using the
ios-sdkqueue another song
In iOS, the queued songs are added to the "Next Up" queue in a last-queued-first-up order.
Android
- Using the
android-sdkqueue a song
- Using the
android-sdkqueue another song
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.