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

Offline cached features #4

Open
SunnyNagam opened this issue Aug 16, 2018 · 5 comments
Open

Offline cached features #4

SunnyNagam opened this issue Aug 16, 2018 · 5 comments

Comments

@SunnyNagam
Copy link
Contributor

Instead of just an error message and a prompt to restart the app should used cached city temperature data if available when device is offline.

@SunnyNagam SunnyNagam added the enhancement New feature or request label Aug 16, 2018
@SunnyNagam
Copy link
Contributor Author

Wait what cached city temperature, the user wouldn't have up to date temperature on his device would he? Do we plan on downloading future weather data when they connect for this?

@brian-norman
Copy link
Member

In the file right now we save:

  • Threshold (every time threshold is updated)

I’m recommending we save:

  • Threshold (every time threshold is updated)
  • City name (every time it’s fetched)
  • Current temperature (every time it’s feched)

@SunnyNagam
Copy link
Contributor Author

Hmmm how would we use that data for offline functionality? I don't know if weather from days or hours ago is necessarily similar to the current temperature and could be used as a replacement.

@brian-norman
Copy link
Member

This is a fail-safe in case the decline to turn on internet (we should prompt them) so that we don’t show random error message (looks ugly) it doesn’t necessarily have to be accurate. I think normal weather apps already do this!

@brian-norman
Copy link
Member

TODO: city name cache

@brian-norman brian-norman removed the enhancement New feature or request label Mar 27, 2023
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

2 participants