Quick Start
Requirements
Support for web push notifications requires:
Your website to be SSL-enabled (https://)
One publicly-accessible file to be placed on your site
A snippet of Integration HTML to be added to each page on your site.
This can also be done with a tag manager.
Steps
Step 1: Place the Service Worker File
Download the Service Worker from our CDN (https://cdn.p-n.io/pushly-sdk-worker.js) and place it in a publicly accessible location on the same domain that serves your site. For example: https://www.example.com/assets/pushly/pushly-sdk-worker.js
Step 2: Add the Integration HTML
If you placed the Service Worker in a subdirectory on your domain follow the steps in the Service Worker Placed in Subdirectory tab otherwise select the Service Worker Placed in Public Root tab below.
Add the following HTML snippet to the head section of your site and replace both instances of SDK_KEY with the value provided by your account manager.
Also, replace the /absolute/path/to/pushly-sdk-worker.js text in the snippet with the full path to the Service Worker.
Add the following HTML snippet to the head section of your site and replace both instances of SDK_KEY with the value provided by your account manager.
Need strict CSP or Subresource Integrity (SRI)? See Delivery & Security (SRI).
Last updated