Skip to content
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

Use native web browser notifications APIs to notify users when a new email comes in while the tab/window is not focused #119

Open
nekohayo opened this issue Nov 17, 2024 · 4 comments

Comments

@nekohayo
Copy link

As far as I could tell from using usermin 2.102's webmail interface, it does not prompt / request privileges to emit notifications, and presumably does not try emitting any notifications (unlike VirtualMin, which is able to do that when it has software updates available for example).

If my observation is correct (as I have not seen it working), then it would be quite useful to implement https://developer.mozilla.org/en-US/docs/Web/API/Notifications_API/Using_the_Notifications_API for usermin's webmail interface. Particularly for the inbox folder, and any other folder that the user might currently be viewing but unfocused (i.e. the user has switched to another tab / window / workspace).

@jcameron
Copy link
Collaborator

@iliajie you have some experience with adding notifications in Webmin / Usermin ... what do you think about this one?

@iliajie
Copy link
Collaborator

iliajie commented Nov 18, 2024

Yes, we could add desktop notifications for Usermin, but they won’t be very useful until we have the mail list loading in the background.

@nekohayo
Copy link
Author

Ah I see, so it seems like this would depend on some async "no-page-refresh" list update functionality (if that isn't already implemented) and ideally based around the notion of IDLE-based refreshes in #118 to power the async UI refreshes...

@iliajie
Copy link
Collaborator

iliajie commented Nov 19, 2024

Yeah, it could be a nice improvement down the road!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants