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

Add offline support #102

Closed
momobobe opened this issue Jun 5, 2022 · 5 comments
Closed

Add offline support #102

momobobe opened this issue Jun 5, 2022 · 5 comments
Labels
enhancement New feature or request

Comments

@momobobe
Copy link

momobobe commented Jun 5, 2022

Current version has totally no little offline ability (error when offline). Please allow to view cached content (home, songs, albums, etc.) when the device goes offline. Maybe before that we should improve the ability of cache (if there is any) since now even contents on home screen are not cached at all, and scrolling up & down would always reload titles and covers, which is definitely a waste of network consumption, especially for mobile devices.

@momobobe momobobe added the enhancement New feature or request label Jun 5, 2022
@momobobe
Copy link
Author

momobobe commented Jun 5, 2022

Maybe https://github.com/Sangwan5688/BlackHole for reference

@momobobe
Copy link
Author

momobobe commented Jun 5, 2022

Hmm, it seems the latest version has added some, but maybe we need more

@momobobe momobobe changed the title Add some kind of offline support Add offline support Jun 5, 2022
@KRTirtho
Copy link
Owner

KRTirtho commented Jun 5, 2022

Well, the latest version of Spotube in-memory caching is implemented but for offline caching there's not many good package available imo. Riverpod's FutureProvider only supports in-memory caching. flutter_cache_manager is available but creating custom Cache Models for each request is time consuming but doable

@KRTirtho KRTirtho moved this to To do in Spotube Board Feb 1, 2023
@KRTirtho KRTirtho moved this to Backlog in Spotube Board Feb 1, 2023
@KRTirtho
Copy link
Owner

KRTirtho commented Mar 8, 2023

@momobobe I wrote fl-query package which allows caching to disk. In v2.7.0 I've added persistent caching in some parts of the app (Queue tracks, Favorite Tracks etc)
And, with fl-query it's now possible to cache anything, any type of http response. I'll add this caching support in other areas of Spotube too

So I need suggestions about which parts of the app will make more sense to be persisted. I know caching User Library is one of the most wanted one's 😄

@KRTirtho
Copy link
Owner

This has already been fixed and available in latest stable version

@KRTirtho KRTirtho moved this from Backlog to Done in Spotube Board Jun 25, 2023
@RaptaG RaptaG moved this from Done to Deployed in Spotube Board Jul 2, 2023
@Pops34 Pops34 mentioned this issue Feb 5, 2025
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Deployed
Development

No branches or pull requests

2 participants