Push Notifications not working on mobile
-
Great update! the notifications are now working on PC even when the user is not on the website anymore. However notifications stopped working for mobile on my website.
Here is a screenshot of my PNFBP settings: https://imgur.com/a/OUPDxnl
Thank you and best regards!
-
I have tested in android mobile in chrome browser, it is working as expected. In the update version 1.29 changes are related to subscribe/unsubscribe shortcode and button customization for group notifications. In your mobile please login to your user id and subscribe group notification. Group notification differs from normal notification because group users can be subscribed only when they logged into your account, so both groupid along with device token will be updated into database and if it matches then notification will be sent in order to avoid sending notifications non-subscribed users for the particular BuddyPress group.
Attached is screenshot of mobile notification Mobile Push notification ScreenshotThank you for the response, unfortunately the push notification stopped working for me in general altogether. I don’t recieve push notifications anymore even from either regular posts or group posts. I tried disabling all plugins except buddypress and PNFPB but it still didn’t work.
I also tried changing my theme but to no avail…. i created a new firebase project to see if that was the issue but it’s still not sending out push notifications. As my last attempt, i tried to send out an on demand push notification but that also didn’t work even for admin side. Please tell me how to debug this, thank you for your assistance and best regards.
I have tested again, it is working on my side. For your problem, I suggest you following,
1. Delete PNFPB plugin, it will clear the data (clear the cache if needed) and re-install the latest version
2. Verify Firebase credentials are correct in your Firebase account. If needed create new web app, and configure it in admin area plugin as per Firebase configure process and also make sure you allow notification from your browser. If it asks for prompt then allow push notification, some times in chrome browser says notification blocked in address bar, please allow the notification.
Try push notification again.Please let me know whether you installed the plugin in the same site which is in your WordPress profile? if so, I checked that site and found this push notification is not enabled. To debug, I would suggest go to chrome browser->developer tools->application tab
Under application tab, please verify correct service worker file installed from this plugin, pnfpb_icpush_pwa_sw.js needs to present and it needs to be in active status. If you find some other service worker file then this plugin is not enabled or some other push notification plugin is enabled . At a time we need to have single service worker and due to this reason, i have incorporated both PWA and Push notification service under single plugin.Yes you are correct, my website is the same one on my wordpress profile. I am using an addon from tutor lms plugin that also sends push notifications from their courses. I still need to check this pnfpb_icpush_pwa_sw.js however.
I checked it and it says that my service worker source is tutor-push-notification.js and it’s active.
- This reply was modified 2 years, 9 months ago by kinoaki.
I checked the view source code and this plugin url is not present. Also disable other push notification plugin, refresh cache, activate PNFPB this plugin and enter your firebase credentials and other fields, save changes. Go to frontend to check correct service worker file is active in application tab
Hello. After the last update I also have the same problem. It does not send notifications neither in the browser, nor in the mobile. I uninstalled the plugin, cleared the cache, and even created a new application in firebase, but it’s still the same. Hopefully you can help us. Thanks
Please let me know your page/link which you face problem. I will check it or let me know the screenshot containing your page link and other details
In chrome browser go to developer tools -> application tab-> service worker and check whether pnfpb_icpush_pwa_sw.js is present in that service worker tab. If it present and it shows green color status then plugin is enabled otherwise plugin is not enabled.
Please see plugin url mentioned in the plugin details page to see demo site.Please see the 2 screenshots as shown here containing 2 images showing push notification demo and service worker file status in browser Push notification demo and service worker status
Similarly please check service worker status in your website developer tools -> application tab-> service worker and check whether pnfpb_icpush_pwa_sw.js is active or check whether you installed some other push notification plugin/some other service worker file is active in browser. Since browser will take only one service worker file at a time, so only one push notification pwa plugin can be active at one time.It was all because I had another pwa plugin. Disabling it has worked at the moment. Thank you very much for the help.
Hi, thank you for your assistance and i apologize for the long delay. I was incredibly busy over the holidays. I hope you all had a good one!
After following your debugging steps, push notification is working again however is it not possible to use two push notification plugins at once? I also need the other plugin for my courses.
Since browser accepts only one service worker file for push notification/pwa, at a time only one push notification pwa plugin can be active. All browsers are designed like that.
Already some work is going on WordPress core to have common service worker file but it is not implemented yet, until we have common service worker file in WordPress core it is difficult to have more than one push notification pwa plugin.
- The topic ‘Push Notifications not working on mobile’ is closed to new replies.