891 B
891 B
PWA Install Prompt Implementation Plan
Objective
Implement a user interface that prompts the user to install the application as a PWA on supported devices (primarily Android/Chrome).
Tasks
- Create
src/client/src/components/PWAInstallPrompt.tsxthat:- Listens for
beforeinstallpromptevent. - Displays a custom UI (toast/banner) when the event is captured.
- Calls
prompt()on the event object when the user clicks "Install". - Handles the user's choice.
- Listens for
- Integrate
PWAInstallPromptintoApp.tsx. - Verify
vite.config.tsPWA settings (already done, looks good).
Implementation Details
- The component will use a fixed position styling (bottom right/center) to be noticeable but not blocking.
- It will use existing design system (Tailwind).
Status
- Create Component
- Integrate into App
- Update Config
- Completed: 2025-12-18