LogoLogo
WordPress.orgExtensionsSupport
Version 8
Version 8
  • Notification – Custom Notifications and Alerts for WordPress
  • Known issues
  • πŸ€Έβ€β™€οΈ User guide
    • Update broke my site
    • How Notification plugin works
    • Who can use this plugin
    • How to create Notifications
    • Troubleshooting
    • Advanced
      • How to escape { character
      • Background processing
      • How to setup different FROM address for different Notifications
      • Custom Post Type support
      • Disable upselling
      • How to send HTML Emails
  • πŸ”§Developer
    • General
      • Plugin loading chain
      • Runtime
      • Extension possibilities
      • Creating an extension
      • Customizations
      • Bundling Notification plugin
      • White label mode
    • Notifications
      • Suppressing the Notification
      • JSON synchronization
      • Programmatic Notifications
    • Triggers
      • List of all default Triggers
      • Custom Trigger
      • Enable support for non-public Custom Post Type
      • Adding Merge Tags to existing Triggers
    • Carriers
      • Custom Carrier
      • Adding custom fields to Carrier form
      • Suppressing the Carrier
    • Recipients
      • Custom Recipient
    • Snippets
      • General
        • Automatic Trigger testing
        • Allow other roles to edit Notifications
        • Programmatic Notification with manual Trigger
        • Background Processing filter
      • Triggers
        • Post
        • User
      • Integations
        • WP All Import
        • MemberPress
  • 🧩Extensions
    • Installation
    • Planned extensions
    • 3rd Party Extensions
    • Custom Fields
      • v2.2
      • v1.4
      • v1.3
    • Conditionals
    • Email Attachments
    • Push
    • Scheduled Triggers
    • Slack
    • Twilio
    • Webhooks
Powered by GitBook
On this page
  • First-time configuration
  • Plugin configuration
  • The "Subscribe" button
  • Managing subscriptions
  • Notification Recipients

Was this helpful?

  1. Extensions

Push

Version 1.0.0 or later

PreviousEmail AttachmentsNextScheduled Triggers

Last updated 3 years ago

Was this helpful?

First-time configuration

After installing and activating the plugin you have to generate VAPID Keys. They are used to authorize Subscribers, and without them, the integration will not work.

Click the link in admin notification or head over to Settings -> Carriers -> Push.

Next, press Generate button and Save changes.

Plugin configuration

Permission Pop-Up mode

By default pop-up asking for permission to receive Push Notifications will be shown after clicking the "Subscribe" button (Manual mode). You can change it to show a pop-up to Users immediately after the first click on the page (Automatic mode).

Subscribing by logged-in Users

To gain more control over subscriptions you can check the option, that only logged-in users can subscribe to receive Push Notifications. This mode is recommended if you want to send more personal Notifications, e.g. about changing order status.

The "Subscribe" button

You can display the "Subscribe" button on any of your pages using [notification-push-subscribe-button] Shortcode. You can customize it with several attributes:

  • id - set the id attribute to the button

  • class - set the additional classes to the button

  • label - set the text of the button

  • granted_label - set the text of the button if permission is already granted

  • denied_label - set the text of button if permission was revoked

You can also use the following code to display the button from PHP:

use BracketSpace\Notification\Push\Frontend\SubscibeButton;

SubscibeButton::render();

The "Subscribe" button is available to be used in both Manual and Automatic mode.

Managing subscriptions

There is no way to determine who is the subscriber if a subscription is not connected with the user. This situation can happen if the Subscribing by logged-in Users option is not checked. In this case, the site administrator cannot remove every user subscription on their demand. Fortunately, users can revoke permission by themselves:

You can see user subscriptions on the user list in the admin dashboard.

In the user edit view, you can see details about its subscriptions, or remove any of them separately.

Notification Recipients

There are two plugin-specific recipients

Every subscriber

This Recipient will try to send Notification to every subscriber, no matter if they are connected with a specific user or not.

User

This Recipient will try to send Notification to every browser in which the given user subscribed for receiving notifications. The list shows users which are subscribed at least once.

Mozilla Firefox instruction:

Google Chrome instruction:

🧩
https://support.mozilla.org/en-US/kb/push-notifications-firefox#w_how-do-i-revoke-web-push-permissions-for-a-specific-site
https://support.google.com/chrome/answer/3220216
Download this extension