Pushwoosh Web Push Notification SDK
Download | Guide | Sample |
---|
Integration
-
Download Pushwoosh Web Push SDK and unzip it. You should have the following files:
manifest.json
,pushwoosh-service-worker.js
-
Place all these files to top-level root of your website directory.
-
Open manifest.json and make the following changes:
- Change name and short_name to the name of your website.
- Change
gcm_sender_id
to your Sender ID. Please keep in mind that Sender ID is usually a 12-digit number, and it can't contain any letters.
-
Include manifest.json in
<head>
Installation
via npm
npm install web-push-notifications --save
via html
Usage
;const pwInstance = ;pwInstance; pwInstance;
Chrome Guide | Firefox Guide | Safari Guide | HTTP integration Guide | Subscription Button Guide |
---|