Offline cached features
Opened this issue · 5 comments
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.
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?
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)
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.
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!
TODO: city name cache