davidtakac / prognoza

Libre weather app with widgets and offline support
MIT License
378 stars 10 forks source link

Fetching new information after app wasn't used for a while. #60

Open IvicaDuspara opened 1 year ago

IvicaDuspara commented 1 year ago

Bug description: I didn't access the application for ~2 week(s) (possibly 3). I didn't forcefully stop it and I didn't update it in mean time. It is my understanding that when you don't access the app for a while (1 week or more) it will have to download the newest weather data.

When I entered the app after aforementioned period I had the following screen:

Screenshot_20230322-155732_Prognoza

You will notice that the time and date on the phone are 2023-03-22, 15:57 CET (UTC + 1). On the bottom of the screenshot, future dates displayed are Thursday, March 30th twice and Friday, March 31st once.

When I opened the sidebar and clicked on the same location again (Zagreb) I got the following screen: Screenshot_20230322-155759_Prognoza

This time, I received a full information package -> one week in advance.

What was tested:

What wasn't tested:

davidtakac commented 1 year ago

What an excellent bug report 👏 Thank you very much.

I saw this happen once on an emulator, but I thought it was its fault. Guess not 😄 I'll check this out during the redesign, as it will change the data model significantly.

To answer some questions:

Uj947nXmRqV2nRaWshKtHzTvckUUpD commented 1 year ago

same for me. (sometimes?) on open, hourly and next days data not available for a while. app could really use a swipe refresh and maybe a rate limit added. also on start it should update faster