Jump to content
You are viewing a curated collection of the most significant posts in this topic with an estimated read time of 6 minutes. The full topic contains 77 posts with an estimated read time of 46 minutes.

Featured Replies

Posted

I get no push notifications from my forum in Chrome. They're enabled in my forum and in Chrome, but nothing. 

Edited by David N.

Solved by Matt

Go to solution
  • 5 months later...
  • Replies 76
  • Views 3.2k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • Excellent. Please let us know if you would like us to magically resolve the issue without touching a single button in the future 🙂 

  • There is an open bug report. We're monitoring at present to see whats happening

  • Push notifications are quite complex, but from the software side if you are logged in and have ticked 'remember me' the service worker will run in the background pushing notifications to your browser.

Posted Images

  • Management
  • Solution

I've done a lot of debugging locally, and they are now working for me on Chrome and MacOS.

CleanShot 2025-02-27 at 12.46.08@2x.png

The issue for was that while I had Chrome set up to accept notifications, I had them off at OS level. Toggling this on did the trick.

CleanShot 2025-02-27 at 12.44.44@2x.png

If they're not working for you, and notifications in MacOS are already on, then I would probably do a hard reload to ensure you've got the latest version of the service worker installed in your browser.

  • Community Expert
 

Thank you, will check and let you know guys!

No problem. Hope you manage to get them working

  • 3 weeks later...
  • Community Expert

Sorry this appears to have been missed. I have taken a look at the error, and that wuld actually be returned when the client is already registered for push notifications.

  • Community Expert

Im honestly not sure where else I can point you on this one. Notifications work on this end. The only exceptions we have found is where the device itself is not set up correctly, which I gave my findings on above. Essentially these are unfortunately device issues, rather than issues on your site

BTW and FYI here are a couple of considerations.


The core_notifications_pwa_queue is indeed populated with notifications to me.

image.png

I do receive push notification using the Service worker tester in the Chromium Dev tools.
image.png

So, In my opinion is something related with PWA task/queue processing.
--
What do you think what could be the culprit?

(We already did tests deactivating all 3rd party plugins)

Thanks for the support

Ok guys, I found one of what I believe are 2 culprits.
First issue: login_key (remember me)

In the system/Notification/Notification.php file image.png

the method that sends the notification, requires that the Device model has "login_key" field populated, we don't have anything there (I checked the table core_members_known_devices and everything is null) and I assume that is because we login into the community using SSO.

For testing purposes, I commented that line 1044, and voilà. Push notifications were triggered normally.

BUT, then it came the 2nd issue: PWA notification queue

this is still on investigation, anyway, when more than 1 member are involved in a notification, or the member has more than 1 device with PWA, the notification is not processed by the previous service I stated in the issue #1 but in the following file&method applications/core/modules/front/system/notifications.php
image.png


and what I believe is going on here is queue processing slowness. But as I said this is still investigation ongoing.
--
So, now we know at least with issue #1, there is something I can do in my end to skip that? Thanks

  • Management

Push notifications are quite complex, but from the software side if you are logged in and have ticked 'remember me' the service worker will run in the background pushing notifications to your browser.

Now, your browser may ignore them if you haven't given the site permission to receive them. Likewise, your OS may ignore them if you have notifications off for the browser, or you are in do not disturb or in a silenced mode.

Recently Browsing 0

  • No registered users viewing this page.