Update all locations weather on app start
Problem Statement
Currently, when the app is opened by default the current location data is fetched and the data for other locations are fetched when it's selected or on swipe action. This takes more time to load the data for each saved location when selected. Also the date in the Locations list is stale on app load.
Proposed Solution
Like default Google Weather, it would be nice to fetch the weather data in the background all the saved locations when the app is opened for first time( can be ignored if the app is alive in the background. This will avoid showing the stale data in Locations list and less manual refresh will be needed on location selection.
Alternatives Considered
No response
Additional Context
No response
Acknowledgements
- [x] I have searched the existing issues and discussions to ensure this feature has not already been requested.
- [x] I understand that submitting a request does not guarantee it will be implemented.
- [x] I have provided all necessary information to clearly explain my request.
Idk if I can make it work because JS usually doesn’t run that well in the background. Google Weather doesn’t actually run in the background either, it just makes two separate calls: one to show the current data in the location list and another when you click on a location to load the rest.
Now, making it update all locations would cause issues with API calls and require refactoring the code.
And background updates for weather are gonna be a problem for a while :).