Description
Disposition: Currently notifications has only two options. Set requireInteraction: false
and show notification only for approximately 20 seconds or set requireInteraction: true
and show notification that will shown forever until user close it.
Problem: Sometimes requireInteraction: true
can be send to irrelevant device or at irrelevant time and cause problems. For example we send notification when user already locked computer and went home from office, so in the morning this notification will be already useless. Another example is sending notifications to some sort of street smart screens or computers working in kiosk mode. Such computers does not have keyboard or mouse and require some IT specialist to close them.
That's why sending requireInteraction: true
notifications is very risky thing.
Hypothesis: If user has not reacted to requireInteraction: true
notifications for a long time, then something goes wrong and we have to solve it somehow.
Proposal: add new field ttl
in milliseconds to requireInteraction: true
notifications that give ability to automatically close such notifications in reasonable time for example 1 or 2 hours.