whisper-money/resources/js
Víctor Falcón abc71daa7e
feat: Show PWA install button on mobile landing page (#99)
## Summary

- Detects Android and iOS visitors on the landing page hero section
- Replaces the **Get Started** and **Check Demo** buttons with a single
**Install App** button on mobile
- **Android**: Captures the `beforeinstallprompt` event and triggers the
native PWA installation prompt when tapped
- **iOS**: Opens a dialog with step-by-step instructions (tap Share icon
→ Add to Home Screen)
- Desktop visitors see the original buttons unchanged

## New files

- `resources/js/hooks/use-pwa-install.ts` — Hook that detects platform
(Android/iOS), captures the `beforeinstallprompt` event, and exposes
`promptInstall()`
- `resources/js/components/landing/install-app-button.tsx` — Install
button component with iOS instructions dialog

## Screenshots
| Android & iOS | iOS Instructions |
|--------|--------|
| <img width="1082" height="2402" alt="localhost_8000_(Pixel 7)"
src="https://github.com/user-attachments/assets/bd42c24a-8a82-4f42-9f5f-c13bd5505836"
/> | <img width="1170" height="2532" alt="localhost_8000_(iPhone 12
Pro)"
src="https://github.com/user-attachments/assets/c4ec136f-46f1-44a5-a96a-d7afd41c6015"
/> |
2026-02-07 09:33:12 +01:00
..
components feat: Show PWA install button on mobile landing page (#99) 2026-02-07 09:33:12 +01:00
contexts feat: Add PostHog (#70) 2026-01-20 10:47:59 +01:00
hooks feat: Show PWA install button on mobile landing page (#99) 2026-02-07 09:33:12 +01:00
layouts fix: Header on iOS 2026-02-02 09:00:03 +01:00
lib fix: Apply automation rule labels on transaction creation and import (#79) 2026-01-27 11:11:29 +01:00
pages feat: Show PWA install button on mobile landing page (#99) 2026-02-07 09:33:12 +01:00
providers Add Budgeting Feature to Track and Manage Spending (#36) 2026-01-21 15:25:50 +01:00
services fix: Delete transactions on local browser DB after deleting it on the backend 2026-01-27 11:12:05 +01:00
types feat: Load transactions history on budget created (#72) 2026-01-22 11:10:15 +01:00
utils Add Budgeting Feature to Track and Manage Spending (#36) 2026-01-21 15:25:50 +01:00
app.tsx fix: Progress bar color on dark scheme 2026-01-22 09:25:53 +01:00
ssr.tsx SSR was missing the privacy mode provider (#46) 2025-12-30 08:55:03 +01:00