Build a cross-platform PWA install flow with manifest start_url, beforeinstallprompt, a custom install button, standalone-mode detection, and Add to Home Screen guidance for iOS Safari.
This PWA refinement adds three features: different browser and installed views, an explicit install button, and platform-specific guidance when direct installation is unavailable.
The browser view is index.html; the installed view is selected through manifest.json‘s start_url. Android and supported desktop browsers use beforeinstallprompt. Safari on iOS receives an Add to Home Screen guide, while other iOS browsers are told to open Safari.