Push Notification for Post and BuddyPress

Description

This Plugin is designed subscribe users for push notification and to send push notification using Firebase Cloud Messaging whenever new WordPress post published, WordPress custom post types published and for new BuddyPress activities and also for comments posted in BuddyPress activities.

Plugin features:-
Push notification using Firebase Cloud Messaging credentials when new post/BuddyPress/BBpress/activities/custom post type published.
To send push Notification to all BuddyPress users when new BuddyPress activities or comments are published.
To send push Notifications only for BuddyPress Group Members when group activities are published.
To send push Notification to all users when new post or custom post types are published using Firebase Cloud Messaging.

Service workers are created on the fly for Firebase Cloud Messaging while activating the plugin
In addition to default subscription from browser, following shortcode can also be used to display toggle subscription button.
New Shortcode [subscribe_PNFPB_push_notification] to display Subscribe/Unsubscribe push notification toggle button.
Using above shortcode, toggle button to subscribe/unsubscribe can be added to sidebar or any other locations according to your need.
The shortcode [subscribe_PNFPB_push_notification] is optional, it is a additional facility to subscribe to push notification inaddition to default option from browser.

How to use Plugin:-

Following are steps to configure the plugin,
1. Download the plugin
2. Activate the plugin
3. Go to settings of the plugin (in admin menu -> Settings -> Push Notification using FCM)
4. Enable/Disable push notification settings for post, custom post types, BuddyPress activities all users or only for BuddyPress Group Members and for BuddyPress comments.
5.When BuddyPress Group Members option is enabled, it will send push notification only to users who joined in Group/to Particular group members.
6. Configure Firebase settings as per below steps,
7. Sign in to Firebase, then open your project click settings icon & select Project settings
8. To get Firebase server key, select project settings from Firebase account, go to cloud messaging tab, get server key fill below first field under firebase configuration
9. For remaining fields, you need to get it from your Firebase web app. All fields are required to configure FireBase push notification.
10. In the Your apps card, select the nickname of the Firebase web app for which you need a config object.
11.Select Config from the Firebase SDK snippet pane and fill below fields

After saving below fields, it will ask to allow notification for this website in browser default popup, click on allow notification to get notifications

After completing above steps, push notification will be displayed based on option selected for posts/buddypress while publishing posts or custom post types or during new BuddyPress activities or comments.

  1. New Shortcode [subscribe_PNFPB_push_notification] can also be used to display Subscribe/Unsubscribe push notification toggle button. It is a additional facility in addition to default option from browser to subscribe/unsubscribe push notifications.

Screenshots

  • Screen showing list of push notifications in desktop
  • Settings page to configure plugin with FireBase and other settings
  • Admin area menu for this plugin
  • Shortcode to display subscribe/unsubscribe toggle button
  • Shortcode to display unsubscribe/subscribe toggle button
  • BuddyPress Group members can subscribe/remove push notification for every group

Installation

Following are steps to configure the plugin,
1. Download the plugin
2. Activate the plugin
3. Go to settings of the plugin (in admin menu -> Settings -> Push Notification using FCM)
4. Enable/Disable push notification settings for post, custom post types, BuddyPress activities/BuddyPress Group members and for BuddyPress comments.
5.When BuddyPress Group Members option is enabled, it will send push notification only to users who joined in Group/to Particular group members.
6. Configure Firebase settings as per below steps,
7. Sign in to Firebase, then open your project click settings icon & select Project settings
8. To get Firebase server key, select project settings from Firebase account, go to cloud messaging tab, get server key fill below first field under firebase configuration
9. For remaining fields, you need to get it from your Firebase web app. All fields are required to configure FireBase push notification.
10. In the Your apps card, select the nickname of the Firebase web app for which you need a config object.
11.Select Config from the Firebase SDK snippet pane and fill below fields

After saving below fields, it will ask to allow notification for this website in browser default popup, click on allow notification to get notifications

Push notifications will better work in normal browser not in cognito private browser as it requires service worker registrations to display push notification.

After completing above steps, push notification will be displayed based on option selected for posts/buddypress while publishing posts or custom post types or during new BuddyPress activities or comments.

  1. New Shortcode [subscribe_PNFPB_push_notification] can also be used to display Subscribe/Unsubscribe push notification toggle button. It is a additional facility in addition to default option from browser to subscribe/unsubscribe push notifications.

FAQ

Do you have any questions?

Please contact us here with your query.

Reviews

April 10, 2020
This Plugin does not work. It has the potential to be something better. I hope the developer can make this better.
Read all 3 reviews

Contributors & Developers

“Push Notification for Post and BuddyPress” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.11

Changes to BuddyPress Group member push notification subscription/unsubscription.
Changes to Compatiable with buddyx theme, buddypress template packs – legacy and BuddyPress Nouveau.
Fixed – Push Notification permission to ask only with user gesture and removed request permission without user gesture

1.10

New feature added – BuddyPress Group members can subscribe/remove push notification for every group.
When BuddyPress Group Members option is enabled, it will send push notification only to users who joined in Group/to Particular group members.

1.9

Compatible upto WordPress Version 5.6

1.8

New feature added – BuddyPress Group members can subscribe/remove push notification for every group.
When BuddyPress Group Members option is enabled, it will send push notification only to users who joined in Group/to Particular group members.
Compatible upto WordPress Version 5.6

1.7

Fixed warnings related to sourcemapping firebase core javascript
Updated firebase core modules
Push notifications will better work in normal browser not in cognito private browser as it requires service worker registrations to display push notification.
This plugin requires firebase credentials to be filled in plugin admin area to get push notifications from FireBase. Please refer plugin documentation
Updated subscribe and unsubscribe javascript files compatible with latest jquery

1.6

Updated firebase core modules
Compatible upto WordPress Version 5.5.1. Updated author URL.

1.5

Compatible upto WordPress Version 5.5.1. Updated author URL.

1.4

Compatible upto WordPress Version 5.4.2. Updated author URL.

1.3

Compatible and tested upto WordPress Version 5.4.2

1.2

  • Added new shortcode [subscribe_PNFPB_push_notification] to unsubscribe push notifications.
  • Removed manifest.json file generation as it is required by old generation.

1.1.1

  • Added new shortcode [subscribe_PNFPB_push_notification] to unsubscribe push notifications.
  • Removed manifest.json file generation as it is required by old generation.

1.1

  • Updated with link to the settings on the Plugins screen.

1.0

  • Initial version.