Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ContentAPI fetchChildrenOfContentItem does not return all objects #109

Open
nicoletapop opened this issue Mar 18, 2019 · 7 comments
Open

Comments

@nicoletapop
Copy link

Hi, I recently started to use this SDK and I realized that whenever I try to fetch one playlist tracks, the call to the method will always fetch the first 20 items, regardless of the playlist I have given it to as parameter. I cannot find in the documentation a way to retrieve the next 20 tracks and so on.

Could you please help me sort this out?

Many thanks.

@hspinks
Copy link

hspinks commented May 31, 2019

@nicoletapop did you ever find a solve for this?

@cjam
Copy link

cjam commented Jan 15, 2020

Have been trying to figure out a way around this issue, to no avail. Tried to use the fetchContentItemForUri in hopes that perhaps it would grab all of the children, but no dice.

Any ideas on how to get all of the songs in a playlist?

@hspinks
Copy link

hspinks commented Feb 1, 2020

@cjam I've found that the web API is much easier to work with than the iOS SDK... it's unfortunate to sacrifice some of the nicer features of the SDK, but issues like this have just been showstoppers for me. With the Player API included in the web API, you can still control playback. It can still be useful to use the SDK together with the web API - I'm using it for auth, making sure there's a device available for playback, and (when available) real-time player state updates to cut out some of the http requests. But other than that, I've moved almost entirely to the web API and found it much more friendly

@cjam
Copy link

cjam commented Feb 2, 2020

Yea it must be a limitation within the implementation of remote API within the Spotify app. I have also found a workaround for the needs of our app. Thanks for the suggestion about the web API. May use that if I need to get more out of Spotify, but as it is trying to support the offline environment.

@twalenzyk
Copy link

@cjam would you mind sharing your workaround?
Is it related to the limitation of 20 items?

@cjam
Copy link

cjam commented Mar 12, 2020

@twalenzyk I think the best way at the moment to get around it is to use your token with the web api, which unfortunately doesn't help in the offline scenario but better than just 20 items.

@twalenzyk
Copy link

@cjam Thanks a lot, just had a bit hope, that is is possible with the SDK.
Will look in to the web API.
Thanks for the fast reply ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants