-
Notifications
You must be signed in to change notification settings - Fork 437
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Notifications for chats are not showing when browser tab/window is inactive #1575
Comments
Yeah, that is currently done intentionally, but we start to feel we should try to solve this in another way. But we also want to not pop notifications all the time when you are actively monitoring the chat on one device. |
Yes I know this could be annoying.
Maybe make a notification on window title or tab title is fine too. |
I think an approach where user focus is or appears to be on interaction with the chat means no notification but all other scenarios gets a notification i.e. on a desktop cursor is in the chat response box (and the tab/window is active) for that chat, in touch environment the device is active (unlocked) and the chat app is not backgrounded (including sharing the screen) and that chat is active. Any other situation needs a notification or the chat will be missed. Q. if someone is logged into the NC instance but doesn't have chat open do they get notified in some way that's even a little intrusive? |
They receive Browser notifications if accepted once. |
We're struggling to reproduce notifications. We get the little red dot on the bell in an NC tab, but nothing if you're not viewing the tab. The browser shows "send notifications Allowed" for the NC instance. Is there anywhere we should look to see related errors? |
The same for me. I was never asked for a permission to receive notifications and i also don't receive any.
We should just use the same setting that's already there and show notifications based on the users choice. |
We're still struggling to get some notification of a chat being started or a message sent. We've tried with multiple installations and different browsers, and with setups that have STUN and TURN servers just to make sure we're covered our bases. Any idea where we can look now? |
@nickvergessen even the browser notifications are delayed, sometimes up to 5 minutes, which doesn't do the job. I have deployed Talk as a Skype replacement in the company I work for, and the lack of proper notifications is forcing us to use jabber/phone to say "Hey, I wanna share my screen with you, can you please check the call I just initiated with you?" which... isn't how it is supposed to be. We are willing to donate some amount of money if that is going to speed-up the development for reliable notifications. |
I'm currently thinking, if we should send the notifications even when you are in the conversation and only mark them automatically read after 30 seconds. This way they would still pop in the browser, while not being left behind as a list of things that has been dealt with already. |
That would be nice. I would also suggest to have some non-annoying 'Blip' sound on received message, as well as updated tab title like 'X new messages... | Talk'. Maybe even favico.ico replacement to attract more attention. |
Unread count in title is handled in #798 |
@nickvergessen sound seems to work with other browser based chat systems. Or at least Google's. What would prevent NC from adopting a similar solution? |
The sound option of web notifications was unsupported by all browsers and has now even be removed completly: Also other "auto playing of audio" is prevented by firefox and chrome. So you can only play sound once the user interacted with the media element. |
@nickvergessen I've tested the audio tag and it works without any interaction on both Firefox (60.7) and Chrome (73). Can't we trigger such play event on a new notification ? That would also fix #1444 . |
@stratoss does require the user first allows autoplay for the site (FF) but that's the same for notifications anyway. |
Hm Firefox says that no special permissions has been granted for that page, but yes, even if that's the case, audio notifications will greatly improve the UX. |
please make those audio notifications opt-in 😨 |
@nickvergessen are there any plans to introduce real-time noticeable notifications on new call / new message ? It is a basic functionality which all major web-based communication apps already support. |
it really is, the mobile app can do notifications correctly since quite some time now. but on Desktop/web it's just not working at all. |
If it can help someone, here is what I figure out today on our instance : The command
But notifications were displayed several minutes later, when it was working. Running Maybe the client_push app should warn somewhere if the notify_push daemon is not running ? |
I'm having exactly the same behavior issue :
How can I help solving this issue ? |
Hi, I did some tests on nextcloud 25 and I saw that message arrive "instantly" only if the recipient has the chat window open, out of that generate the notification on any nextcloud page loaded by the user but never if user do nothing (seems not processed including background operation by cron) |
I am running into this issue even on Nextcloud Hub 27. I miss a ton of messages because of this. If the chat is open but in an inactive tab, it should notify. If the worry is that other devices will ping even though a device has the chat active, maybe that device should send some kind of signal back to the server saying, hey, don't send notifications out to the other devices because its active in at least one device right now. ...although personally, given that my daily workflow consists of me moving between multiple devices frequently, I actually would prefer other devices notify me anyways even if one of my devices has it active. |
💭 Discussion result from the Contributor week
|
@nickvergessen this is amazing news, thanks for sharing! |
The problem is it's not only "inactivity", but also inactivity in this window. If you have multiple screens, have the call with chat open on screen 1 and write a protocol on screen 2, it will mark you as inactive after 30 sec and you recent notifications all the time, making your phone, tablet, desktop client and browser ping you with notifications, while you are actually actively participating in the call. This is why for now we want to check it with 3 minutes. |
I don't think checking if the window is inactive for an amount of time is a good solution for the problem. |
Yes, the problem is it would trigger too often otherwise. Please see the above explanation.
This is the case for me multiple hours every day.
This is way too much. So for now we will try this intermediate step |
If the chat window is open then the person can see the message - this is too much of an assumption. The chat window can be obscured by other windows, another tab could be open, even the person can be away from the computer. |
This is detectable and handled and the browser will immediately say "Ignore me and send notifications"
Well same issue. What does read mean? The chat scrolls automatically when the window is open and focused, "even the person can be away from the computer". Please just await the next version and then we can see how it works. |
Has a patch for this already been released as of 17.1.3? I am still missing messages. |
No, we are not backporting this. It will come with Talk 18 for Nextcloud 28 in ~10 days |
Talk desktop client still no notification capabilities, why is that? |
@nickvergessen Should this issue be closed? For me on Desktop the notification is suspended until the Spreed tab is focused - defeating the purpose of the notification. |
Yes, it's fixed as good as possible atm. |
Steps to reproduce
Expected behaviour
As the browser tab or window is not active, user should be marked as inactive and the receive notification.
Actual behaviour
No notification is raised because of user not being marked "inactive" on window change.
So you are to miss all messages from other until you go back to Nextcloud talk tab/window
I removed many of items asked in this bug in order to keep it clear. Those were not revelant.
If you miss any information, please feel free to ask.
Browser ALL
Operating system: Ubuntu
Browser name: Firefox/Chrome
Browser version: 65 for Firefox
Spreed app
Spreed app version: 5.0.2
Custom TURN server configured: yes
Custom STUN server configured: no
Operating system: Ubuntu
Web server: Apache
Database: Maria
PHP version:
Nextcloud Version: 15.0.4
The text was updated successfully, but these errors were encountered: