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

Stats pages are not updated when returning to the app #23604

Closed
crazytonyli opened this issue Sep 17, 2024 · 1 comment · Fixed by #23643
Closed

Stats pages are not updated when returning to the app #23604

crazytonyli opened this issue Sep 17, 2024 · 1 comment · Fixed by #23643

Comments

@crazytonyli
Copy link
Contributor

crazytonyli commented Sep 17, 2024

Expected behavior

Comments and other content on the Stat page is refreshed when the app is brought back to foreground.

Actual behavior

It is not refreshed.

Steps to reproduce the behavior

  1. Launch the app and go to a site's Stats page.
  2. Stay on the "Traffic" tab.
  3. Go to device's home screen.
  4. Go to a web browser and add a comment to a post in the test site.
  5. Open the app without interacting with the app.
  6. Observe the comment count displayed on the "Traffic" tab.
Tested on [device], iOS [version], Jetpack iOS / WordPress iOS [version]

Please ensure the issue is fixed on both iPhone and iPad.

@dangermattic
Copy link
Collaborator

Thanks for reporting! 👍

github-merge-queue bot pushed a commit that referenced this issue Oct 3, 2024
* Stats: Refresh current tab when view controller is not updated

Relates to #23604.

* Move adding observer code to viewWillAppear to match the removing code

Relates to #23604.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants