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.
usePWAInstallPromptTrigger the “Add to Home Screen” flow from your own button and watch canInstall and isInstalled update live.
usePushNotificationsGrant permission, create a real Web Push subscription, and fire a test notification — then unsubscribe, all from the live hook state.
Open push notification demo →useOfflineSyncToggle offline, queue changes, and watch them drain in order when you reconnect. The pending queue is persisted, so it survives a reload.