ཞིབ་བརྗོད།
It sends push notifications to desktop, android/ios mobile apps using Firebase Cloud Messaging (FCM) Firebase API http v1 or Onesignal or Progressier as 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:-
Push notifications providers
Plugin allows to choose different push notification providers
- Firebase (Free push notification)
- Onesignal (Free push notification)
- Progressier
Plugin sends Push notifications for following,
- New post/custom post type published (including bbpress).
- New BuddyPress activities published.
- New BuddyPress group activity published (only to members of group).
- Notifications for BuddyPress mentions in activities.(only to recipient).
- BuddyPress group invite sent (only to recipient).
- BuddyPress group details updated.
- New Buddypress comments published.
- New BuddyPress message or private messages (only to recipient).
(It is also compatible with Bettermessages plugin). - New BuddyPress member joined.
- For Friend request in BuddyPress (only to recipient).
- Friendship accepted in BuddyPress (only to requestor).
- User avatar change in BuddyPress.
- Cover image change in BuddyPress.
- Supports Push notifications for BuddyBoss and Better Messages plugins
- Woocommerce custom post type push notifications.
- Ability to process more than 200,000 subscribers unlimited push notifications using background action scheduler.
Admin only push notifications (only to administrators)
- When contact form(contactform7 plugin) submitted.
- When new user registered in site.
Notifications only for loggedin users
Enable/Disable option in admin settings to send push notifications using Firebase httpv1 or Onesignal only for loggedin users.
Custom popup and Bell prompt to subscribe push notifications with subscription options
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. 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.
Shortcodes
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
Subscribe/Unsubscribe various push notifications in front end
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.
Scheduling Push notification
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
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
HOW TO USE PLUGIN API TO INTEGRATE MOBILE APP PUSH NOTIFICATION
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.
PWA
This plugin has facility to generate Progressive Web App (PWA). It also supports Progressier 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.
Extra settings for NGINX server
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.
Plugin Demo site
Video tutorial showing how to configure Firebase for this plugin
གཏུབ་རེིས།
སྒྲིག་འཇུག
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)
Scheduling push notifications
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.
Firebase configuration
** Video tutorial showing how to configure Firebase for this plugin **
- Configure Firebase settings as per below steps,
Firebase configuration setup in plugin admin settings
Sign in to Firebase, then open your project, click settings icon & select Project settings
To get Firebase server key (for field 1 in admin firebase settings)
project settings > cloud messaging tab > get server key or add server key button to get server key
To get Firebase config fields (for fields 2 to 8 in admin firebase settings)
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
To get Firebase public key (for field 9 in admin firebase settings)
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)
Progressive Web App (PWA) settings
-
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
- Shortcode [PNFPB_PWA_PROMPT] to create button to install PWA. If user clicks this button, it will show default prompt to install PWA. This shortcode can be placed anywhere or in sidebar according to convenience.
FAQ
-
Do you have any questions?
-
Submit or contact us with your question here (or) Please contact us here with your query. (or) Submit your question in plugin forum
གདེང་འཇོག
བྱས་རྗེས་འཇོག་མཁན། & གསར་འབྱེད་པ།
“Push Notification for Post and BuddyPress” is open source software. The following people have contributed to this plugin.
བྱས་རྗེས་འཇོག་མཁན།ཁྱེད་ཀྱི་སྐད་ཡིག་ནང་ལ་ “Push Notification for Post and BuddyPress” ཡིག་སྒྱུར་བྱོས།
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
དག་བཅོས་ཉིན་ཐོ།
1.99 version August 24 2024
- Resolved problem to include featured image of post in scheduling post push notification.
- All post push notifications will be saved under admin notifications tab to resend or re-schedule notifications again.
1.98 version August 12 2024
- Added schedule push notification facility for post inside post editor.
- Post notifications will be saved in notification tab from this release to resend/schedule later.
- Custom post types are included under front end subscriptions in Notification Bell prompt/ custom prompt, shortcode and in BuddyPress front end notification settings.
- Added new option to Replace prior notification to avoid many notifications in notification center.
- Added new option not to re-notify users when notification are replaced.
- Added Progressier as additional push notification provider along with Firebase or Onesignal.
- Added Progressier PWA support.
- Progressier push notification supports post / custom post, Buddypress activities / group activities, comments, friendship accept/request and Private messages, Frontend BuddyPress notification settings.
- PNFPB PWA – added option to add IOS splash screens for IOS PWA app
- PNFPB PWA – modified to display custom prompt for PWA installation for ios users with instructions
- User Avatar will be included in all push notifications.
- Resolved problem related to un-subscribe/subscribe various push notification options for Firebase httpv1 notifications.
- Compatible with WordPress 6.6
1.94 version June 29 2024
- Security fix
- Bug fix: Removed progress bar if browser is already subscribed
- Bug fix: Resolved problem related to un-subscribe push notification for BuddyPress group
1.93 version June 19 2024
- New admin option for custom prompt push notification to hide notification confirmation message.
- Added new admin field to customize notification confirmation for custom prompt notification.
- Bug fix: Resolved problem for BuddyBoss push notification on activities.
- Bug fix: Update to make this plugin compatible with vikinger community theme.
1.91 version June 13 2024
- Bug fix: Resolved problem related to custom prompt for push notification subscription when push notification providers are changed like Firebase/Onesignal/Others.
- Bug fix: Resolved problems related to conversion of legacy Firebase subscription tokens to http v1 Firebase version.
- Bug fix: Resolved problems related to push notifications containing special characters, white space or regional language characters.
1.89 version June 08 2024
- Bug fix: Fixed loop problem related to httpv1 firebase push notification.
1.88 version June 06 2024
- New features: PWA new features – New admin PWA tabs for PWA Desktop, Mobile screenshot images, PWA Protocol handler and re-designed PWA admin settings tab.
- Update: Changes to Service worker refresh to reflect changes immediately without waiting, so that PWA changes will be reflected immediately (applicable only for apache servers without NGINX). If NGINX is used then it depends on NGINX cache time in the server.
- Update: Latest httpv1 Firebase version push notification will work without legacy Firebase server key.
- Update: Post/Custom post notification logic changed to trigger based on action transition_post_status instead of save_post to avoid duplicate post notification.
- Update: PWA is now available for all push notification providers onesignal/Firebase push notification.
- Update: Re-designed admin panel for push notification settings.
1.87 version Apr 21 2024
- Updated logic to have click url in one time custom push notification and for all push notifications using httpv1 Firebase api version under data array for webview.
- Fixed problem on selecting page url from drop down list for one time push notification click url in admin settings one time push notification tab.
- Regenerated pot file for text domain to have latest text strings.
1.86 version Apr 17 2024
- BuddyBoss users – Frontend push notification settings for various notifications are available under user profile – account – push notification subscription, users will be able to control notifications for Firebase/Onesignal push notifications.
- Onesignal push notifications updates based on Frontend notifications settings. If Frontend settings are switched off then notification will be sent to all users for general BuddyPress activities/comments. For group activities,it will be sent only to group users based on frontend settings ON/OFF. Similarly other notifications will work according Front end settings enabled/disabled and based on user subscription settings.
- Optimize SQL logic in function PNFPB_update_database to execute only for older version of this plugin version less than 1.65.