nioc/xmpp-web

Message notifications

Closed this issue · 6 comments

It would be great if we could get notifications when xmpp-web page is not active or browser is minimised.

nioc commented
nioc commented

What I think for it:

  • ask permission on main page (after login),
  • notify user when he receives a message (chat and groupchat ?) and the app (page) is not currently displayed.

I do not know if you can catch that the browser is minimized?

This works wells with #57 for which I will add a timer for inactivity. But may be it is not a good idea to use the same mechanisms as some users may want to deactivated chat state... 🤔

What I think for it:

  • ask permission on main page (after login),
  • notify user when he receives a message (chat and groupchat ?) and the app (page) is not currently displayed.

I do not know if you can catch that the browser is minimized?

This works wells with #57 for which I will add a timer for inactivity. But may be it is not a good idea to use the same mechanisms as some users may want to deactivated chat state... 🤔

Yes, some pop-up notifications for missed messages with missed message counter on tab. Maybe with sound?

nioc commented

It is existing in VueUse:

nioc commented

I propose the following:

  • add a switch for user requesting notifications (on the presence drop down),
  • when a message is received, if the app is not visible, browser display a notification