Skip to content

fix PWA install prompt: remember 'Not now' dismissal, suppress Chrome warning#29

Merged
sparshsam merged 1 commit into
mainfrom
feat/pwa-install-remember-dismiss
Jun 28, 2026
Merged

fix PWA install prompt: remember 'Not now' dismissal, suppress Chrome warning#29
sparshsam merged 1 commit into
mainfrom
feat/pwa-install-remember-dismiss

Conversation

@sparshsam

Copy link
Copy Markdown
Owner

Summary

Two fixes for the PWA install prompt:

  1. Console warning — Chrome warns when preventDefault() is called on beforeinstallprompt but the custom prompt may not appear. Now we only intercept the event if the user hasn't dismissed recently, eliminating the false warning.

  2. 'Not now' persistence — Dismissal timestamp is saved to localStorage (openproof-install-dismissed). The prompt won't reappear for 7 days after dismissal. After 7 days, it shows again once per dismissal cycle.

Checklist

  • No secrets or credentials
  • Lint passes (0 errors)
  • Typecheck passes
  • Build passes

@vercel

vercel Bot commented Jun 28, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
openproof Ready Ready Preview, Comment Jun 28, 2026 5:30am

@sparshsam sparshsam merged commit ee65b71 into main Jun 28, 2026
2 of 3 checks passed
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

Successfully merging this pull request may close these issues.

1 participant