Skip to content

Conversation

@Kunal241207
Copy link

Fixes #5405
This PR completes the existing PWA install flow by exposing a minimal
install UI when the browser fires the beforeinstallprompt event.

Previously, the install prompt event was captured but never surfaced
to users. This change adds a small, non-intrusive install button that
appears only when installation is possible and triggers the prompt
via a user gesture, as required by browsers.

Changes:

  • Show install button only when beforeinstallprompt fires
  • Trigger deferredPrompt.prompt() on user click
  • Await userChoice and clear state after use
  • Hide install UI once the prompt is handled

This does not alter existing behavior and only makes the already
captured install capability usable.

@github-actions
Copy link
Contributor

✅ All Jest tests passed! This PR is ready to merge.

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.

[UI/UX] PWA install prompt captured but never surfaced to users

1 participant