Getting startedPWA installPush notifications

Providers

Firebase providerOneSignal providerExpo provider
Offline syncDemos
PWA installPush notificationsOffline sync
Demos

Live demos

Each demo runs the real hook in your browser so you can watch its state change as you interact. Open one on desktop Chrome or Edge, or on a mobile browser, to see how the same code behaves across platforms.

usePWAInstallPrompt

Trigger the “Add to Home Screen” flow from your own button and watch canInstall and isInstalled update live.

Open PWA install demo →
usePushNotifications

Grant permission, create a real Web Push subscription, and fire a test notification — then unsubscribe, all from the live hook state.

Open push notification demo →
useOfflineSync

Toggle offline, queue changes, and watch them drain in order when you reconnect. The pending queue is persisted, so it survives a reload.

Open offline sync demo →