WordPress plugin
The official plugin connects a WordPress site in about a minute. It handles the two things manual installs get wrong (injecting the snippet and hosting the service worker), and it can push every new post automatically the moment it publishes.
What it does
- Injects the subscription snippet on every page, configured with your Site ID.
- Serves the service worker at
/pnsc-swfrom your own domain: no file uploads, works in subdirectory installs too. - Push on publish (optional): when a post goes live (including scheduled posts), its title, excerpt, permalink, and featured image are pushed to your subscribers, with your WordPress Site Icon as the notification icon. Each post pushes at most once, so republishing never duplicates.
- Tag targeting (optional): auto-pushes can target only subscribers with specific tags.
- Subscribe button: one checkbox appends it to every post, or place it
anywhere with the
[pnsc_subscribe]shortcode. It inherits your theme's button styling, reflects the visitor's real subscription state, and on iOS Safari — where Apple only allows push for Home Screen web apps — it shows Add-to-Home-Screen instructions instead of a button that can't work.
Setup
- Create a site for your WordPress domain in the dashboard and copy its Site ID.
- Install and activate the plugin from the WordPress plugin directory (search for "PushNotificationService"), then open Settings → Push Notifications and paste the Site ID.
- For push-on-publish, create an API key in the dashboard and paste it too, then tick Send a push notification when a post is published.
- Give visitors a way to opt in: tick Add a subscribe button at the end of each
post, or drop
[pnsc_subscribe]into any post or page (text,subscribed_text,denied_text, andios_hintattributes customize the copy). - Save your permalinks once (Settings → Permalinks → Save) so the
/pnsc-swroute registers.
Push on publish vs. RSS to push
Both automate "new post → notification". The plugin pushes instantly via the REST API and can include the featured image; RSS to push polls your feed every few minutes and needs no plugin at all. Use the plugin on WordPress; use RSS for everything else. If you enable both for the same site, you'll push twice, so pick one.
Notes
- The plugin needs a pushnotificationservice.com account; every plan starts with a 30-day free trial.
- Auto-prompting for permission on page load is supported but off by default: browsers penalize unsolicited prompts, and a user-triggered button converts better.
- Pushes on publish count against your monthly deliveries like any other send.
- The API key is stored in your WordPress database; use a dedicated key so you can revoke it independently of your other integrations.