Jump to content
This topic contains 77 posts with an estimated read time of 46 minutes. A summary containing the most significant posts is available with an estimated read time of 6 minutes.

Featured Replies

  • Management

They do work for me, it's worth ensuring you have't silenced notifications from this site, either via the browser or your OS.

  • 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

  • Author
 

Are they working on other communities for you? Are they working on your own community for you? Are they working for others on your community?

The work on other sites, other communities, and they work on Invision Community when I turn them on in Safari.

They do not work here or my own community when I turn them on in Chrome.

I'll ask my members to see if anyone has tried using them in Chrome on their Mac.

 

They do work for me, it's worth ensuring you have't silenced notifications from this site, either via the browser or your OS.

Can you make them work in Chrome on macOS? That's what I've tested here multiple times, on two different Macs, on this site and my site, since September 2024 when I first reported it. They've never worked in Chrome since then for me.

They work as expected in Safari.

Here are my settings in Chrome.

screenshot2.png.0ac9a55fa449e127ec44684391acae7a.png

screenshot4.png.02079845df836de27394f99346ed2aff.png

 

it's worth ensuring you have't silenced notifications from this site, either via the browser or your OS.

Wait a mn! via OS? Hmmm...

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

  • Author
 

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.

Woohoo!! That seems to be the culprit! I just got my very first notification from this site since September 2024.

Weird that my Google notifications were turned off on two machines at the OS level... maybe that occurred during a Chrome or macOS update?

In any case, problem solved! Pfffeeew. Thanks Matt (and Daniel)!

  • Management

I spent ages debugging locally and could see the notification was accepted by the Chrome endpoint and then someone in Slack said "check your OS notification settings" and it was toggled off.

We're going to add a little "Not getting browser notifications?" with a link to a page on this site explaining how to check OS permissions too as it's not always obvious.

  • Community Expert

For anyone who is using windows, I also found the following

I looked at my browser and my notifications were switched on, but I wasn't getting notifications. I had the PWA app installed on windows

  • Checked the PWA app. Notifications showing switched off!

  • Chrome itself, notifications switched on

I switched on notifications in the PWA app, notifications working from from PWA not chrome itself. However, if I remove the PWA app, it works from the browser.

We're seeing some other oddities when edge PWA app is added too and trying to get notifications from chrome. I suspect what is happening here is that windows or chrome is trying to do something to avoid duplicate notifications

  • Community Expert
 

Thank you, will check and let you know guys!

No problem. Hope you manage to get them working

 

No problem. Hope you manage to get them working

Hi Marc, we have this staging site for our IPB, we have 3rd party plugins and app (still running on v4xx), so what I did was to disable all 3rd party app and plugins and change the theme to default.

Did test for notifications but still could not received any desktop or pc notifications, but I could recieved notifications in this invisioncommunity.com

I checked all settings in my desktop and im pretty sure chrome and edge are properly setup to accept notifications even this PC notifications settings.

What could cause this? any idea? OS issue? security?

- Allan

  • Community Expert
 

Hi Marc, we have this staging site for our IPB, we have 3rd party plugins and app (still running on v4xx), so what I did was to disable all 3rd party app and plugins and change the theme to default.

Did test for notifications but still could not received any desktop or pc notifications, but I could recieved notifications in this invisioncommunity.com

I checked all settings in my desktop and im pretty sure chrome and edge are properly setup to accept notifications even this PC notifications settings.

What could cause this? any idea? OS issue? security?

- Allan

Other than what we have mentioned already above, Im not sure. Based on what you are saying it has to be something site specific of course, but without being able to physically go through your browser, hard to say.

  • 2 weeks later...

Hello everyone, it seems the push notifications in desktop is working, now question, it this working on mobile phones like android or iphone?

- Allan

  • Author
 

Hello everyone, it seems the push notifications in desktop is working, now question, it this working on mobile phones like android or iphone?

- Allan

Notifications are working for me here on iPhone.

thats odd, I could recieved desktop notifications now, and testing our forum in android phone using chrome browser and PWA i could not get notifications, even I left invisioncommunity forum in my mobile android active still could not get push notif, I checked my android settings and It seems all fine, notifications are in full permit :(

 

thats odd, I could recieved desktop notifications now, and testing our forum in android phone using chrome browser and PWA i could not get notifications, even I left invisioncommunity forum in my mobile android active still could not get push notif, I checked my android settings and It seems all fine, notifications are in full permit :(

I stand correct, I did recieved invisioncommunity push notif in my android phone via chrome

I was tracking this in ACP, and I got this log, also any idea of this error "1S160/2" ? Again I could get notifications in desktop but having problem with mobile in android chrome browser.
image.png

Edited by Allan - TheTechTribe

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

 

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.

Hi Marc, thank you for the reply, what does that means? I enabled my push notifications in Android Mobile Google Chrome and the PWA APP, but I decide to uninstall the PWA app so I could focus on Google Chrome in Android Mobile, still I could not received any push notifications from my android mobile in our website portal.thetechtribe.com/forum, any idea guys?

  • 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

Hi @Marc I am debugging this again as we haven't been able to set this the push notifications.

Checking the logs, after I enabled the notifications both in my Windows Desktop PWA and Android Phone PWA both triggers this error:
"An invalid push subscription was received from the browser."

whoever, it creates the device record in the core_notifications_pwa_keys.

image.png
image.png

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

  • Community Expert
 

Checking the logs, after I enabled the notifications both in my Windows Desktop PWA and Android Phone PWA both triggers this error:
"An invalid push subscription was received from the browser."

Was the device allowed to receive push notifications via the system as mentioned above? This is generally the case when the browser is not authorized to do so.

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

Recently Browsing 0

  • No registered users viewing this page.