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

PWA offline mode does not work #3208

Closed
Kimi-Gao opened this issue Aug 4, 2020 · 7 comments · Fixed by #4377
Closed

PWA offline mode does not work #3208

Kimi-Gao opened this issue Aug 4, 2020 · 7 comments · Fixed by #4377
Labels
bug An error in the Docusaurus core causing instability or issues with its execution

Comments

@Kimi-Gao
Copy link

Kimi-Gao commented Aug 4, 2020

🐛 Bug Report

PWA offline mode does not work after being installed from chrome url

Have you read the Contributing Guidelines on issues?

Yes

Reproducible Demo

offlineModeActivationStrategies: ['appInstalled', 'queryString'],

v2=bug
Xnip2020-08-04_21-16-39

@Kimi-Gao Kimi-Gao added bug An error in the Docusaurus core causing instability or issues with its execution status: needs triage This issue has not been triaged by maintainers labels Aug 4, 2020
@slorber
Copy link
Collaborator

slorber commented Aug 4, 2020

Hi,

Have you tri
image

Why is it written "trying to install" here?

Can you try again, but make sure that the new service worker that is setup after installing the app is fully installed. Maybe the service worker didn't have time to download all the assets locally, and you put it offline before?

@Kimi-Gao
Copy link
Author

Kimi-Gao commented Aug 4, 2020

@slorber Thanks for your answering.

I agree that offline mode sometimes does not work because the app is not fully installed.

Here is what I have met. When I installed the app and first opened it, there was an error on the console:
image
and offline didn't work, but when refreshed, all the assets can be downloaded locally and offline mode worked fine(sometimes easy to download sometimes not, especially put it offline before).

So my question is: what we can do to make sure it can be fully installed as soon as possible? Is it due to my network issue? Thanks.

@slorber
Copy link
Collaborator

slorber commented Aug 4, 2020

Can you turrn debugging on in the PWA plugin options? And give me some more verbose console output?

@Kimi-Gao
Copy link
Author

Kimi-Gao commented Aug 5, 2020

@slorber FYI
image
image

@slorber
Copy link
Collaborator

slorber commented Aug 5, 2020

@Kimi-Gao having the link to your site deployment / repo would also be helpful

@Kimi-Gao
Copy link
Author

Kimi-Gao commented Aug 6, 2020

@slorber https://deploy-preview-347--thinkbucket.netlify.app see more at this PR

@slorber
Copy link
Collaborator

slorber commented Aug 7, 2020

Thanks for the detailed infos, really helpful.

Will take a look next week

@slorber slorber removed the status: needs triage This issue has not been triaged by maintainers label Aug 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An error in the Docusaurus core causing instability or issues with its execution
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants