How to display temporary banner on mobile when notification received and logged in?

סיכום מבוסס בינה מלאכותית

Jason_Rybka asks about displaying a temporary notification banner on mobile when a user receives a notification while logged in, similar to desktop behavior. maiki clarifies that the site already shows a ‘new updates’ message and supports browser notifications on mobile. Jason_Rybka explains he’s not receiving notifications on iOS, even when the site is open in a background tab. Falco confirms that in-app popup notifications like Facebook’s are not supported and that Web Push notifications are unavailable on iOS due to Apple’s restrictions. Falco provides workarounds, including the DiscourseHub app, a Pushover notifications plugin, and a third-party iOS app Fig Native Discourse Client. Jason_Rybka thanks for the information.

Hi there, I’m wondering if there is a way to display a notification banner at the top of the site that temporarily appears when the user receives a notification and they are on the site (specifically on mobile), since browser notifications do essentially the same thing on desktop.

Can anyone steer me in the right direction? Thanks.

I get a “new updates” message that will reload the view to show them, as well as browser notifications, via mobile browser.

So… what is it you want? :slight_smile:

Hmmm. Maybe I’m missing a setting somewhere because I’m not getting notification alerts when I’m browsing the site on mobile. I do get the little dot appearing by the profile pic indicating there’s a notification I guess I was looking for a notification while I have the site open in a tab but not the active tab, as it does on desktop. :confused:

We don’t have those “in-app popup notifications” like Facebook does.

We do support native web push notifications on every platform except iOS, which are a super-set of the in app notifications IMO.

I’m on iOS, and wondered why I never get any notifications… though it was a setting in Safari iOS or Chrome iOS or even on the Discourse settings I had missed.

So aside from checking email or the site directly there is no way to get notifications on iOS?

Thanks for the info! :smile:

Apple decided to not implement the Web Push API in their browser. Since iOS has only one browser, iOS users don’t have access to Web Push notifications, that is available in Windows, MacOS, Linux and Android.

Existing workarounds are:

Awesome info, thanks for that.