Handles service worker notifications and displays snackbar messages with our without Close Button.
Install the package using npm or yarn:
npm install @nexim/service-worker-notify
# Or using yarn
yarn add @nexim/service-worker-notify
Handles service worker notifications and displays a snackbar message with or without a close button.
import {serviceWorkerNotifySnackbar} from '@nexim/service-worker-notify';
serviceWorkerNotifyHandler({
lastNotifyVersion,
changelogPage: 'https://example.com/changelog' || '/changelog/',
});