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

Add Auto Refresh When Open #16

Open
mikejones3 opened this issue Mar 2, 2021 · 1 comment
Open

Add Auto Refresh When Open #16

mikejones3 opened this issue Mar 2, 2021 · 1 comment

Comments

@mikejones3
Copy link

Sometimes when IO open the PWA there it is not refreshed and is stale. For example I know someone posted but when I click the PWA icon on my android for an open the app, I won't see the new post until I pull down to refresh.

If there was a way to force a refresh on open that would be great!

@askvortsov1
Copy link
Owner

From what I've seen when searching about this, opening the PWA is viewed similarly to opening a browser tab. Maybe a test of window.onfocus iff in PWA mode should trigger a refresh? I'll need to test this to make sure it's not refreshing unnecessarily.

Maybe there should also be a time threshold?

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

No branches or pull requests

2 participants