Last modified: 2014-04-16 18:22:10 UTC
Classic 'new message' notifications about your talk page or LQT only show up when refreshing a page. Polling the web API every couple minutes could be nice, especially if things like RecentChanges turn into more interactive pages that will be long-running.
Brion: Is this ticket Echo territory nowadays? Should this be moved, or can this be considered closed?
Sounds like Echo territory for implementation -- has this been implemented in Echo, or is it still something that needs doing?
Not sure if that's implemented already, but if it was it would be Echo territory. Hence moving there. Might require fixing bug 32283 first...
See also bug 59879 (probably a duplicate?), particularly comment1 by legoktm
This is inconsistent with other sites where notification are shown in real-time, or at least while the user is on the page rather than leaving or explicitly reloading the page.
*** Bug 59879 has been marked as a duplicate of this bug. ***
I put together a POC at I8f7bc77d05762fd12927437f6450ae3f97eb84af. It simply polls the API every 60 seconds to check for new notifications (it kinda but not really works). That said, I don't think polling is a good idea. We should instead have some kind of websockets service pushing notifications to the user/browser. This might line up well with [[mw:Requests for comment/Publishing the RecentChanges feed]].
Kunal, sounds like a reasonable stopgap measure fix, as you said there are better ways to do it, How would you feel about increasing the polling frequency but tying it to an activity timer, associated with page scrolling or mouse movement, e.g. we poll at a higher frequency while we know the user is interacting with the page, and stop polling or poll much more infrequently when no activity is detected. Quora uses a similar approach. Another metric of, is the user looking at the page could be a mixture of Page Visibility API https://developer.mozilla.org/en-US/docs/Web/Guide/User_experience/Using_the_Page_Visibility_API#Use_cases and window focus and blur for older browsers compatibility. http://stackoverflow.com/questions/14309596/detecting-when-browser-window-tab-is-not-in-the-foreground