Web Push
Connect Web Push
Web Push sends title/body notifications to browsers that opted in on your site. It is not WhatsApp and not SMS.
In the app: Setup → Channels → Web Push
Setup
- Add Web Push in Setup → Channels.
- Host the service worker as instructed (download the stub if your site is not on copulse.app).
- Set icon, site URL, and prompt style.
- Opt in on a test browser, then send a test from the channel or a campaign.
Settings and what they mean
VAPID keys are platform-managed — you do not paste them. The channel name is a CoPulse label only.
| Setting | What it means |
|---|---|
| Prompt style | Native — browser permission immediately. Soft ask — CoPulse banner first, then the browser prompt. After first message — wait until they chat. Manual — your site or agent must trigger the prompt. |
| Notification icon URL | Square HTTPS image in the OS toast. Used for Test and campaign pushes. |
| Customer site URL | Live origin, or a CoPulse demo URL ending in /demo. Test checks that https://that-host/copulse-push-sw.js exists, then sends to the newest subscriber on this project. |
How to test Web Push
- Download copulse-push-sw.js from the channel and host it at your site root (HTTPS). Demo link on the channel row is enough for a first pass.
- Open that origin, Allow notifications when prompted (style = Native or Soft ask).
- Set Customer site URL to that origin, save, then tap Test in Settings.
- If the test says the service worker is missing, the file is not at /copulse-push-sw.js on that host. If it says no subscribers, Allow the prompt on a browser that can reach that origin, then retry.