Rocket.chat: Multiple Chrome tabs open to Rocket Chat will result in multiple desktop notifications

Created on 10 Jun 2016  路  4Comments  路  Source: RocketChat/Rocket.Chat

Your Rocket.Chat version: v31

  1. Open multiple chrome tabs and point them all to a Rocket Chat private group
  2. Have one of your private message friends send you a message
    BUG: multiple desktop notifications appear, one for each Rocket Chat tab

image

easy notification uux

Most helpful comment

Solvable using shared workers or service workers. For me it is also not uncommon to have multiple rocket chat windows/tabs open (even by accident) - so I'd second, the current behavior is a bit confusing. Moving the display of messages to a worker would also have the benefit that we could start using the Push API - allow us to receive notifications even if there is NO rocket.chat tab open.

All 4 comments

If you are signed in on two / three different computers wouldn't you expect to get a notification on all computers?

Solvable using shared workers or service workers. For me it is also not uncommon to have multiple rocket chat windows/tabs open (even by accident) - so I'd second, the current behavior is a bit confusing. Moving the display of messages to a worker would also have the benefit that we could start using the Push API - allow us to receive notifications even if there is NO rocket.chat tab open.

Notification.tag could be used to minimize this issue. The browser will receive multiple notifications with the same tag, but will show only the last.

@rodorgas I was un-aware of this tag. Thanks for sharing. I'm sure adding this would require significantly less work then adding service worker.

Not to say we don't want to add service worker. Its just too big of a chunk to bite off right now :grin:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Kiran-Rao picture Kiran-Rao  路  3Comments

tanc picture tanc  路  3Comments

Buzzele picture Buzzele  路  3Comments

antn89 picture antn89  路  3Comments

karlprieb picture karlprieb  路  3Comments