Launch Week Day 1: Socket for Jira Is Now Available.Learn More
Socket
Book a DemoSign in
Socket

@braze/service-worker

Package Overview
Dependencies
Maintainers
1
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@braze/service-worker

Braze service worker to be used with the Braze Web SDK.

latest
Source
npmnpm
Version
6.7.1
Version published
Weekly downloads
19K
2.23%
Maintainers
1
Weekly downloads
 
Created
Source

Install

$ npm install --save @braze/web-sdk
$ npm install --save @braze/service-worker

This will install the Braze Service Worker files into ./node_modules/@braze/service-worker where you can reference them locally. Note that the Braze Service Worker is only meant to be used along with the Braze Web SDK.

Usage

In your build process, copy node_modules/@braze/service-worker/service-worker.js to your web application's public root directory.

Then, using the Web SDK, provide the serviceWorkerLocation initialization option with the path to your service worker.

See our documentation pages for steps to integrate push notifications into your website using the Braze Web SDK.

Keywords

Appboy

FAQs

Package last updated on 17 Apr 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts