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

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

Open
IvicaDuspara opened this issue Apr 9, 2023 · 2 comments
Open

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

IvicaDuspara opened this issue Apr 9, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@IvicaDuspara
Copy link

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:

  • I tried catching this bug by opening the app everyday. It didn't work. I'm guessing it has to be left in background for a period longer than a week.
  • I once caught the bug while using Wi-Fi network instead of mobile data. I don't think that's related.
  • Refreshing by repeatedly spamming scroll up doesn't work. I have to pick the location option.

What wasn't tested:

  • If different weather data provider(s) result in the same bug
  • If different locations result in the same bug
@davidtakac davidtakac added the bug Something isn't working label Apr 9, 2023
@davidtakac
Copy link
Owner

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:

  • The app tries to pull new data after the cache is ~1-2h old. 2 weeks should definitely have triggered a pull.
  • WiFi vs mobile data should not matter, yes. The code does not prefer either one.
  • Pulling down the main screen doesn't trigger a refresh. Entering the app from the background or selecting a location from the sidebar does. This is why the data refreshed when you selected the same location, but I'm not sure why entering the app didn't work.

@Uj947nXmRqV2nRaWshKtHzTvckUUpD
Copy link

Uj947nXmRqV2nRaWshKtHzTvckUUpD commented May 24, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants