WebPush Configuration

PNFPB supports the Web Push Protocol natively (without Firebase as a delivery intermediary). This mode uses VAPID keys you generate yourself.

Generate VAPID Keys

You can generate VAPID keys using the web-push Node.js library:

npm install -g web-push
web-push generate-vapid-keys

This outputs a Public Key and a Private Key. Keep the private key secret.

Configure WebPush in PNFPB

  1. In PNFPB → Push Notification Configuration enable the WebPush option.
  2. Enter the VAPID Public Key and Private Key.
  3. Optionally enter a contact email for VAPID identification.
  4. Save settings.

WebPush + Firebase Option

A hybrid mode (pnfpb_webpush_push_firebase = 1) lets the plugin use WebPush delivery while still using the Firebase service worker for subscription management. This is useful when you already have Firebase configured but want to delivery via self-hosted Web Push.

If your server cannot make outbound HTTPS requests (e.g. on some shared hosts), WebPush delivery will fail silently. Test with a VPS or managed hosting.