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

Not showing update prompt when used autoUpdate as registerType value before #743

Open
samgholipoor opened this issue Aug 18, 2024 · 1 comment

Comments

@samgholipoor
Copy link

Hello guys,
In advanced, thanks for this helpful plugin.

I have an app in production and my current config is like this:
VitePWA({ registerType: 'autoUpdate', // else })
for every new release, new SW.js would install and activated and my app gets reload and that's fine.
now I wanna change the value to "prompt" in order to show my users new update is available.
but when I push this new config to the production, new SW.js gets downloaded and installed but my users stuck in skip-waiting stage, and because new js code is not yet downloaded, my app doesn't show any update-prompt modal to users.
and all my users never can see my new versions any more.
what would I do to fix this issue?

@samgholipoor samgholipoor changed the title Not showing update prompt when using autoUpdate as registerType value Not showing update prompt when used autoUpdate as registerType value before Aug 18, 2024
@userquin
Copy link
Member

userquin commented Aug 18, 2024

You should read the docs, it is a pain to switch from auto update to prompt: https://vite-pwa-org.netlify.app/guide/auto-update.html#automatic-reload

The new prompt should be available next time the user opens a new browser session and you deploy a new version.

imagen

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