Skip to content

Latest commit

 

History

History

service-worker-notify

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

@nexim/toolkit

NPM Version npm bundle size Build & Lint & Test NPM Downloads NPM License

Overview

Handles service worker notifications and displays snackbar messages with our without Close Button.

Installation

Install the package using npm or yarn:

npm install @nexim/service-worker-notify

# Or using yarn
yarn add @nexim/service-worker-notify

API

serviceWorkerNotifySnackbar

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/',
});