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

Background app refresh not happening #2897

Open
LeandraH opened this issue Aug 27, 2024 · 1 comment · May be fixed by #2921
Open

Background app refresh not happening #2897

LeandraH opened this issue Aug 27, 2024 · 1 comment · May be fixed by #2921
Assignees
Labels
Bug Something isn't working Native Affects the native project prio:high ready reproduction-needed Cannot be reproduced

Comments

@LeandraH
Copy link
Contributor

LeandraH commented Aug 27, 2024

Describe the Bug

Report from Sascha on Mattermost:

He opened the mobile app for the first time in a while. It's usually on Stadt Augsburg (and also in this case). The nav bar at the top didn't show the map option even though that had been enabled a while ago. After a pull-to-refresh, the map route showed up. On an iPhone 12 Pro Max with iOS 17.5.1, connected to the live CMS

The app should have checked if the last update was more than a day ago, seen that it was indeed more than a day ago, and then updated the data.

Steps to Reproduce

  1. Change one of the feature flags for 'Testumgebung' deciding which routes are possible
  2. Wait more than a day
  3. Open the native app
  4. See that the routes haven't updated

Note: I haven't actually tested this. Presumably, one can change the period for checking the last update.

Expected Behavior

The available routes in the nav bar have updated.

Actual Behavior

The available routes in the nav bar haven't updated.

Additional Information

Thread in Mattermost:

https://chat.tuerantuer.org/digitalfabrik/pl/tcwqhkhmjpn9djpjjbmn97kqfc

@LeandraH LeandraH added Bug Something isn't working Native Affects the native project labels Aug 27, 2024
@LeandraH LeandraH self-assigned this Sep 4, 2024
@LeandraH
Copy link
Contributor Author

First things I found: The function useLoadCities that checks what feature flags are enabled doesn't get called repeatedly like useLoadCityContent and useLoadWithCache. I haven't gotten around to putting it in yet; I also haven't checked yet if the other two hooks do work in the background.

@steffenkleinle steffenkleinle self-assigned this Sep 11, 2024
@steffenkleinle steffenkleinle linked a pull request Sep 11, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Native Affects the native project prio:high ready reproduction-needed Cannot be reproduced
Projects
Status: In Review
Development

Successfully merging a pull request may close this issue.

2 participants