Store `pwa-hide-install` in localStorage instead to prevent re-notification all the time
hccullen opened this issue · 1 comments
hccullen commented
Each time I load my app, the PWA install prompt appears even though I have dismissed it. This is because the pwa-hide-install
value is stored in session storage rather than somewhere more permanent. This may be intentional/desired though?
Possible Solutions
- Add a parameter to allow users to switch to localStorage over the current default.
- Or switch to localStorage entirely. If there is a good reason to re-prompt, user should force the prompt instead. (note this would be a 'breaking' behaviour)
khmyznikov commented
Yep that's a good idea. You can use the manual mode, but this can be a parameter I agree.