Free Push notifications for WordPress websites with Post/custom post, BuddyPress activities, for Android/IOS mobile apps and to generate PWA.
It sends push notifications to desktop, android/ios mobile apps using Firebase Cloud Messaging (FCM) with latest version Firebase API http v1 version or Onesignal as push notification provider. It has REST API facility to integrate with native/hybrid Android/iOS mobile apps for push notifications. It sends notification whenever new WordPress post, custom post types,new BuddyPress activities,comments published. It has facility to generate PWA – Progressive Web App.
Plugin features:-
To send Push notifications for following,
Enable/Disable option in admin settings to send push notifications using Firebase httpv1 or Onesignal only for loggedin users.
Enable/Disable custom prompt with icon to subscribe/unsubscribe push notifications in front end in admin settings.
Choose Horizontal or Vertical custom prompt style and customize the text, color and button.
Enable/Disable Bell prompt icon to subscribe/unsubscribe notifications. This option can be customized with custom icon and text in admin settings with local languages.
Custom prompt and Bell icon includes subscription option along with subscribe/unsubscribe button. Front end users will be able to subscribe to particular category like post, activity, comments, friendship request/accept, other options while subscribing for first time or if user wants to update subscribe options from bell prompt at any time it is needed.
Subscription options in bell prompt and in custom prompt shall be enabled/disabled in plugin admin settings under push settings tab -> under customization of custom and bell prompt.
Use shortcode [member name] and [group name] in push notification title and custom content to display user name in title/content in push notifications, similarly for BuddyPress group activities [group name] place holder is available to display group name in title/content in push notifications.
For front end users Shortcode [subscribe_PNFPB_push_notification] is available to Subscribe/Unsubscribe push notifications
Options to use Firebase as push notification provider or to use onesignal as push notification provider are available in admin settings area.
Front end push notification menu is available for BuddyPress Front end users to subscribe/unsubscribe various push notifications according to their choices. This menu is available in user profile – settings area. For other users, shortcode is available to display subscription menu for Front end users to subscribe/unsubscribe various push notifications according to their choices.
It allows Scheduled Push notifications to send push notifications hourly(every hour), twice daily(2 times per day), daily, weekly as per WordPress CRON. It also provides option to schedule push notification in background using action scheduler, this will be useful to send notification more than 100000 subscribers simultaneously in background mode.
Push notification scheduling is available for On demand/One time, WordPress Post, BuddyPress activities, BuddyPress group activities and for BuddyPress comments.
REST API to connect mobile native/hybrid apps to send push notification from WordPress site to both mobile apps and WordPress sites.
Using this REST API WordPress site gets Firebase Push Notification subscription token from Mobile app(Android/Ios).
This allows to send push notifications to WordPress site users as well as to Native mobile app Android/ios users.
REST API url is https://wp-json/PNFPBpush/v1/subscriptiontoken
Sample code libraries containing how to use this plugin REST API to integrate with Android and IOS mobile apps
Android app code to integrate with this plugin
IOS app code to integrate with this plugin
Refer video tutorial under “How to use this plugin” section to configure Firebase options in plugin admin area.
This plugin has facility to generate Progressive Web App (PWA).
Progressive Web Apps are supported by Chrome(Desktop,Mobile) browser, Edge browser, Firefox for android, Opera for android. Firefox for desktop will not support PWA.
Go to plugin settings page to enable/disable PWA app and to customize PWA app with app name, app icon, app theme color, background color for PWA and list of pages to be included in offline cache for web app offline mode.
If server is NGINX and not able to create dynamic service worker file https://pnfpb_icpush_pwa_sw.js & PWA manifest json file https://pnfpbmanifest.json then go to plugin settings->nginx tab, enable static file creation option, it will create required static service worker file, PWA manifest json files in root folder. This option is applicable only if hosting/server is based on NGINX and not creating dynamic service worker file, manifest json files. By default, this plugin creates dynamic service worker file and PWA manifest json file.
This plugin uses Firebase Cloud Messaging to send push notification using Firebase registration credentials which is free of cost.
Following are steps to configure the plugin,
Download the plugin
Activate the plugin
Go to settings of the plugin (in admin menu -> Settings -> Push Notification using FCM)
Enable/Disable push notification when new item published in following,
4.a. new post types published,
4.b. new custom post types published,
4.c. BuddyPress activities,
4.d. BuddyPress Group members,
4.e. BuddyPress messages,
4.f. BuddyPress comments
4.g. New BuddyPress member joined
4.h. Friend request in BuddyPress
4.i. Friendship accepted in BuddyPress
4.j. User avatar change in BuddyPress
4.k. Cover image change in BuddyPress
4.l. Group invite
4.m. Group details update
4.n. Contactform7 submitted (Admin notification)
4.o. New user registration (Admin notification)
5.Optionally it allows to Schedule push notifications for post types,BuddyPress new activities, BuddyPress new Group activities and for BuddyPress new comments. Push notifications can be scheduled in following schedules. Go to admin settings and schedule it accordingly.Schedule push notifications in Hourly, twice daily,daily,weekly schedules.
6.When BuddyPress Group Members option is enabled, it will send push notification only to users who joined in Group/to Particular group members.
7.When Buddypress private message notification is enabled, Private message notification will be sent only to the recipient id sent by sender.
** Video tutorial showing how to configure Firebase for this plugin **
Sign in to Firebase, then open your project, click settings icon & select Project settings
project settings > cloud messaging tab > get server key or add server key button to get server key
If you do not have web app, Create a new web app. After creating a new app, it will show firebase config fields
Project settings > General under your apps section > click on config button to view configuration fields
Open the Cloud Messaging tab of the Firebase console Settings pane and scroll to the Web configuration section.
In the Web Push certificates tab, click Generate Key Pair. The console displays a notice that the key pair was generated, and displays the public key string and date added.
(If you already Generated key pair then no need to generate it again)
Go to PWA settings in plugin admin area and fill all required fields to customize and generate PWA app with offline facility.If pages are included for offline cache then users will be able to view those pages in offline mode without internet if page is not stored in cache then default offline page will be displayed.if all urls needs to be excluded from offline PWA cache then enable exclude all urls option in PWA settings.
Go to on-demand push notification admin panel to send push notification from admin panel to all subscribers whenever it required.
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.
11.For front end users Shortcode [subscribe_PNFPB_push_notification] is available to Subscribe/Unsubscribe push notifications for following
11.1. Subscribe all notifications 11.2. Subscribe to all new post/new BuddyPress activity notifications 11.3. Subscribe to all new comments for post,BuddyPress activities notifications 11.4. Subscribe to new comments notifications only from My BuddyPress activities or My post based on Post Author id/BuddyPress activity Author id 11.5. New BuddyPress member joined 11.6. Friend request in BuddyPress 11.7. Friendship accepted in BuddyPress 11.8. User avatar change in BuddyPress 11.9. Cover image change in BuddyPress 11.10. Unsubscribe all notifications
Front end users/customers can opt/remove for various push notifications listed above according to their own choice.
Push notification in Mobile
Desktop push notification
Plugin settings for push notification in admin area
Plugin settings for push notification with BuddyPress options in admin area
Shortcode push notification options for front-end users to opt for various notifications
BuddyPress Group members can subscribe/remove push notification for every group
Admin page showing list of tokens subscribed
Progressive Web App admin settings page
On demand push notification page in plugin settings area 10.Customize plugin buttons 11.API for mobile app which are using webview 12.Special settings for NGINX based server
Submit or contact us with your question here (or) Please contact us here with your query. (or) Submit your question in plugin forum
Bug fix: Resolved problem related to OneSignal Push notifcation already defined window.OneSignal variable. OneSignal plugin is required along with this PNFPB plugin to send OneSignal push notifications for BuddyPress, custom post, on demand push notifications.
Compatible with latest WordPress version 6.5
Bug fix: Fixed problem related to exclude all urls from PWA cache.
Update: Compatible with Bedrock roots-io WordPress boilerplate. Static service worker file for push notification and PWA manifest json static files can also be generated using Bedrock (roots.io) WordPress boilerplate.
New feature: New admin settings field added for number of days to show custom prompt for push notification again for front end users who cancels push notification in custom prompt.
PWA New feature: New admin settings field added for number of days to show PWA custom prompt for push notification again for front end users who cancels push notification in PWA custom prompt.
Update: Removed please wait processing message while subscribing notification.
Update: Optimized subscription of push notifications from custom prompt/bell icons.
Bug fix: Fix problems related to browser check logic to be compatible with Elementor and other plugins
Bug fix: Fixed problems related to duplicate notification for my comments push notifications
Update: PWA cache will not be enabled automatically, unless exclude all urls in PWA settings field set to OFF manually.
Bug fix: Resolved problem related to threadid(private messages),click url fields for webview app push notification – friendship request,accepted,private messages.
Updated readme.txt. refer below change log for 1.79 changes.
New feature: Various Subscription options are included in custom prompt, bell icon while subscribing for push notification first time. Users will be able to select subscription options while subscribing for the first time from custom prompt/bell icon. From bell icon, front end users will be able to modify subscription options whenever it is needed. Subscription option can be turned on/off to include/exclude in custom prompt or in bell icon from admin settings.