WhoKnew Signal™ | The Service Worker

Skip to main content
Table of Contents
Print

Web push requires a service worker — a small script the browser runs in the background. WhoKnew Signal™ registers one automatically; you do not upload a separate file to your theme.

Service Worker URL on Dashboard

On Dashboard, the stat card labeled Service Worker URL shows your site endpoint, typically:

https://yoursite.com/?wkspn_sw=1

That URL serves the worker script WordPress generates. Visitors’ browsers register it when they subscribe or when the front-end push script loads.

What the Worker Does

  • Listens for incoming push events from the browser push service
  • Displays the notification (title, body, icon, image, click action)
  • Handles notification clicks and opens your target URL
  • Supports PWA install flows configured in the Web App tab

Tip: iOS requires Add to Home Screen (PWA) before push works. Configure manifest icons and name under Web App so the install experience is polished.

Troubleshooting

Worker URL 404Re-save permalinks under Settings -> Permalinks. Confirm HTTPS.
Push works on desktop onlyCheck iOS PWA install + Web App manifest.
Stale worker after migrationRestore VAPID keys; hard-refresh browser; re-test subscribe.
Caching pluginsExclude the service worker query URL from full-page cache.

Note: The worker runs in visitors’ browsers, not on your server. Server-side sends still originate from WordPress using VAPID — the worker is only the display layer.

Quick Verification

  1. Open the Service Worker URL in a browser tab (should return JavaScript, not an HTML error page).
  2. On your site front end, subscribe and run Send Test Notification on Dashboard.
  3. In browser dev tools (Application -> Service Workers), confirm registration for your domain.

The worker handles push display; the Web App tab supplies manifest.json, icons, theme color, and display mode for installable PWAs. Together they replace standalone PWA plugins for iOS push workflows.

Warning: Do not register a second push service worker from another plugin — conflicts can block WhoKnew Signal from receiving push events.

Need Help?

For HTTPS and PHP requirements, see System Requirements. For the full push pipeline, see How WhoKnew Signal Works. For key migration issues, see VAPID Keys Backup and Restore.

Share