WordPress Plugins by Muralidharan indiacitys.com technologies

Push Notification for Post and BuddyPress

Viewing 20 posts - 1 through 20 (of 32 total)
  • Author
    Posts
  • #87
    Murali
    Keymaster

    Description
    This Plugin is designed 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. It also generates PWA – Progressive Web App with offline mode facility based on setting from plugin admin page.

    Download this plugin at https://wordpress.org/plugins/push-notification-for-post-and-buddypress/

    Video tutorial showing how to subscribe/unsubscribe push notifications for BuddyPress groups,

    Video tutorial showing how to configure Firebase settings for this plugin,

    Plugin features:-
    To send/schedule Push notifications when new item is published for following,
    1. New post/custom post type published
    2. New BuddyPress activities published
    3. New BuddyPress group activity published
    4. New Buddypress comments published
    5. New BuddyPress message sent

    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)
    3.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)
    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.
    For BuddyPress messages push notification will be sent only to particular user sent by sender id
    It uses Firebase Cloud Messaging to send push notification using Firebase registration credentials which is free of cost.
    Firebase PUSH API is not compatible with Safari browsers and push notification using firebase push api will not work in Safari browsers. For Safari browsers,this plugin will display console log messages to indicate the browser is not supported for push api.
    This plugin automatically clears out device tokens which are not subscribed or if user unsubscribed from the browser then that token will be automatically deleted.
    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.

    PROGRESSIVE WEB APP (PWA)
    This plugin generates PWA app based on settings in plugin admin area. Admin users will be able to enable/disable PWA app and will be customize PWA app with app name, app icon, app theme color, background color and list of pages to be included in offline cache for web app offline mode. 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. 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.

    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 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

    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. If schedule is off then push notification will be sent whenever new item is published in corresponding post types/BuddyPress activities/messages/comments.
    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. Admin can customize the text for push notification title from admin options.

    Download this plugin at https://wordpress.org/plugins/push-notification-for-post-and-buddypress/

    • This topic was modified 5 months ago by Murali.
    • This topic was modified 5 months ago by Murali.
    • This topic was modified 5 months ago by Murali.
    • This topic was modified 4 months, 4 weeks ago by Murali.
    • This topic was modified 4 months, 4 weeks ago by Murali.
    #127
    Murali
    Keymaster

    New video tutorial for Firebase settings for Push Notification for Post and BuddyPress https://youtu.be/02oymYLt3qo

    • This reply was modified 5 months ago by Murali.
    #160
    Murali
    Keymaster

    If there is any issue due to nginx settings in your server, while access dynamic service worker generated by this plugin for push notification. Please browse https://domainname/pnfpb_icpush_pwa_sw.js if you get nginx 404 error then please update nginx settings in your server as shown in attached image file. Even for this website i have enabled nginx caching and i updated nginx settings like this. It is applicable only when you use VPS server with nginx cache settings and it cannot be updated in shared hosting.
    push notification service worker file nginx settings1
    push notification service worker file nginx settings2

    • This reply was modified 4 months, 3 weeks ago by Murali.
    • This reply was modified 4 months, 3 weeks ago by Murali.
    #169
    Ibmfaruk
    Participant

    This Plugin has unlimited potentials and can or will be the best PWA Plugin in the future. I noticed I don’t get Push notifications on my IOS phone, it works perfectly on my Andriod and PC but nothing on IOS

    • This reply was modified 4 months, 3 weeks ago by Ibmfaruk.
    #171
    Murali
    Keymaster

    This plugin is designed using web push api using Firebase javascript.
    Ios is not supported for web push notification. Please verify this link from Firebase supported browsers https://firebase.google.com/docs/web/environments-js-sdk#browsers
    To integrate push notification using Apple Notification Service it requires custom app push notification using their own service using inbuilt web app/mobile app. Apple also requires apn certificate from ios developer account to integrate push notification using custom ios/macos app

    • This reply was modified 4 months, 3 weeks ago by Murali.
    #173
    Murali
    Keymaster

    In future, I am thinking to add facility for IOS push notification using custom app separately from our server like other push services. Since Firebase js sdk https://firebase.google.com/docs/web/environments-js-sdk#browsers , web push api did not support safari browser, we need to create custom push service from private server, we are planning to this in future.

    #174
    Ibmfaruk
    Participant

    Thank you for your reply. That will be awesome if you do that. I will closely be watching over the progress you make with this plugin.

    #175
    Ibmfaruk
    Participant

    Lastly, I noticed I can’t specify to receive activity notifications that are only tailored to me. I always receive activity, comments, forum and topic updates that are not related to me.

    #176
    Murali
    Keymaster

    Activity notifications will be sent to all users for all activities. If you want to subscribe group notifications then please update in admin area to send for group notifications. Group notifications will be only sent to users who subscribed to particular group. Subscription of group notifications will be available for logged in users. Once they opt to subscribe notifications for particular group then device token along with group id will be added to database and notifications will be sent based device token and group id.

    #177
    Murali
    Keymaster

    If you need Push notifications for my activities, my topic, my forum only then i will try to include it in future release enhancements, it will take some time to include it as enhancements in future release. Thank you. I will let you know once it is complete after 1 week.

    #207
    Ibmfaruk
    Participant

    Trust me this feature of my forum, my topic and anything connected to a user will be helpful. It will set you apart from all other plugins out there. You already have a perfect plugin just need to integrate this and voila.

    #208
    Murali
    Keymaster

    I can add option in admin settings but problem will come to all users because some users will be more interested to get all notifications, some users only to their listings. So i think it cannot be option in backend admin setting but i am thinking to include it in front end option or as a shortcode so that users in website can subscribe according to their needs. At present if one new post/activity/topic/comments/custom post types published all users will get notified based on admin settings. If admin settings has option only to author of post then the site users which are currently used to get notifications to new post/buddypress new activity/bbpress new post/custom post types will not receive notifications for post other than their own post. Due to this i am thinking to add option in front end as shortcode or in their buddypress profile to subscribe to notification only for their activities or in otherway, i am thinking to add option to send notification only to author when they get comments/replies on their post/activity/topic/custom post types. I think it is better to add as option in frontend rather than backend admin option. If it is in front end different users can set their preferences in front end according to their needs. Still I am confused whether i can include that option as shortcode or in buddypress profile. If it is in new shortcode then users can subscribe to notification when some one commented on post/custompost types/buddypress….I will update you on this once I complete. Thank you.

    #209
    Ibmfaruk
    Participant

    I am eagerly anticipating this update.

    #210
    Murali
    Keymaster

    I just want to ask one question, is it ok if I include that option in front end as shortcode, so that only front end users can subscribe to comments for their activities/post?

    #211
    Ibmfaruk
    Participant

    Yes, include it in the front end as a shortcode, so that only front end users can subscribe to comments for their activities/posts. That would be much better giving users the option.

    #212
    Murali
    Keymaster

    I will redesign the shortcode button as follows,
    Once it is clicked, it will show form containing options with checkbox
    Subscribe to all notifications
    Subscribe notifications for new posts/Buddypress activities
    Subscribe notifications for comments on my posts/Buddypress activities
    Subscribe to all comments
    Unsubscribe to all notifications

    So that users can switch on/off according to their needs. If nothing is checked then no notifications will be sent and if user is subscribed already in browser (before activating shortcode) then by default subscribe to all notifications will be checked status they can switch off whenever they need it. I will update you once it is complete. It will take some days for me as i need to redesign the shortcode logic with these options and ui design

    Above form will appear underneath the button once it is clicked and once option is saved then it will disapper in the same. Currently it is shown as pop up dialog and i am going to redesign the form to appear in the same sidebar or where ever shortcode placed underneath the button instead of popup dialog so that it will be more friendly.

    • This reply was modified 4 months, 2 weeks ago by Murali.
    • This reply was modified 4 months, 2 weeks ago by Murali.
    #217
    Murali
    Keymaster

    I am in process of developing and testing new design of subscription process with different options using shortcode.
    I have attached below screenshot showing subscription options in new design.
    Push notification Subscription options using WordPress Shortcode

    Subscribe to all notifications
    Subscribe notifications for new posts/Buddypress activities
    Subscribe notifications for comments on my posts/Buddypress activities
    Subscribe to all comments
    Unsubscribe to all notifications

    Once testing is complete then i will release it in to WordPress repository in few days

    #278
    Ibmfaruk
    Participant

    This is very awesome I am looking forward to the update.

    #293
    Murali
    Keymaster

    I have released 1.33 version in WordPress repository with new options in shortcode for various push notification as shown in attached image
    Subscribe to all notifications
    Subscribe notifications for new posts/Buddypress activities
    Subscribe notifications for comments on my posts/Buddypress activities
    Subscribe to all comments
    Unsubscribe to all notifications
    Push notification shortcode with various post and Buddypress subscribe options

    • This reply was modified 3 months, 4 weeks ago by Murali.
    #311
    Murali
    Keymaster

    To use “Firebase integrate” plugin along with Push notification for post and Buddypress

    Use same Firebase app credentials used in this Push notification for post and Buddypress plugin for Firebase integrate plugin

    (If you get warning messages in console then please ignore as both plugins use same firebase core files)

    I have already tested this using Firebase integrate free version plugin

    Attached are below images
    Push notification for buddypress and firebase integrate plugin sync

    TO test Firebase email login using Firebase integrate plugin along with push notification for post and buddypress plugin using same firebase credentials

    • This reply was modified 3 months, 2 weeks ago by Murali.
    • This reply was modified 3 months, 2 weeks ago by Murali.
    • This reply was modified 3 months ago by Murali.
Viewing 20 posts - 1 through 20 (of 32 total)
  • You must be logged in to reply to this topic.
Would you like to install our Progressive web app?

Would you like to install our Progressive web app?

Progressive Web App (PWA) is installed successfully. It will also work in offline