Chrome Push Notification

Connect your website, enable notifications on a device, and send a real test push.

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

  1. Create the website record in step 1.
  2. Add the verification meta tag to the website head, or add the embed script before the closing body tag.
  3. Copy cpn-sw.js from this server to the root of that website, so it opens at https://yourwebsite.com/cpn-sw.js.
  4. Click Verify. Status only becomes Verified when the tag or script is really found on the live website.
  5. 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.