use-pwa
React hook for PWA installation detection and handling. It captures beforeinstallprompt at module load, before hydration, so the button below is honest on first paint.
- isSupportedThe browser fires beforeinstallprompt
- canInstallThe event arrived and was captured
- isInstalledRunning from the home screen or dock
This browser never fires the event, and it is not a platform that can take the page onto a home screen by hand.
npm i use-pwaGitHub →