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.

  1. isSupportedThe browser fires beforeinstallprompt
  2. canInstallThe event arrived and was captured
  3. 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 →