Don’t mix up notifications with comments (implemented by
lino.modlib.comments). Comments are similar to notifications in that they
describe some “event” that happened to some database object, but unlike
notifications, comments are never addressed to a single recipient. And while
notifications are to be delivered to their recipients as quickly as possible,
comments are rather long-term historic entries, visible to every user who has
the required permission.
Don’t mix up notifications with system notes (implemented by
lino_xl.lib.notes), similar to comments.
Unlike comments and system notes, the history of notifications is stored only for a limited time, usually a few weeks. Also the sender of a notification message is always the site itself, not a user. That is, you cannot ask Lino to show you a “list of all notification messages emitted by a given user”.
- desktop notifications¶
How to enable desktop notifications on your device:
You must open a browser window and sign in to the Lino site.
Your browser must ask your permission to show desktop notifications from that website, and you must answer “Yes”.
The Lino site must have been configured to send notifications. Some Lino applications don’t use the notify plugin. Or if the Lino application your site is able to send notifications, the site maintainer may have disabled desktop notifications.
Independently of whether notifications have been delivered via email and as desktop notification, Lino displays unseen notification messages in the dashboard where it also provides an action for marking individual message as seen.
A common caveat is that Lino does not know whether you saw the desktop notification or the email. That’s why all notifications remain on your dashboard until you tick them off explicitly.
It can be disturbing to read a message again in the dashboard if you have just read by email or as a desktop notification.
Some users tend to not care about marking their notifications as seen in the dashboard, which causes their “My notification messages” to become overfilled and useless.
Don’t misunderstand the My notifications widget as a to-do list, which is not a good idea.
There is no perfect solution for these problems. One workaround is to instruct
Lino to also delete unseen notifications automatically, by setting
keep_unseen to False. Here is an example which also increases
remove_after to 180 days (6 months):
Users can hide the MyMessages widget in their preferences if
lino.modlib.dashboard is installed as well. But that’s not a
recommended solution. If you see that users of your application are
doing this, you should analyze why they do it and e.g. add filtering
Possible optimizations of the system:
Add a ¬ify=123456” (the id of the message) to every link in the email so that when the user follows one of them, the message can get marked as seen.
Lino can optionally make that a given site user will receive only the
first notification message about a given owner. Any following message is
ignored until the site user has marker the first message as seen. Typical use
case are the messages emitted by
ChangeNotifier: you don’t want to get
10 mails just because a colleague makes 10 small modifications when authoring
the text field of an observed database object.