1. Connect Website
Enter your website below. You will get a verification tag and an embed code. Add one of them to your website, place cpn-sw.js at your website root, then click Verify.
2. My Websites
Subscriber counts update after a device enables notifications.
3. Subscribe on this device (Test)
This is the fastest way to test. It subscribes this browser, on this dashboard origin, for the selected website record.
Detecting device...
Desktop: use Chrome on Windows, Mac or Linux. Android: open this same dashboard in Chrome on your Android phone and tap the same button there. Push needs HTTPS, except localhost.
4. Send Test Notification
How a real website connects
- Create the website record in step 1.
- Add the verification meta tag to the website head, or add the embed script before the closing body tag.
- Copy
cpn-sw.jsfrom this server to the root of that website, so it opens athttps://yourwebsite.com/cpn-sw.js. - Click Verify. Status only becomes Verified when the tag or script is really found on the live website.
- On that website, call
window.CPN.subscribe()from a button click so visitors can allow notifications.
Note: subscriptions belong to the origin that asked for them. The dashboard test in step 3 proves the push flow on this origin. A different website must run the steps above on its own origin.