linagora / twake-on-matrix

A multi-platform (Flutter) application for connecting to Matrix - an open network for secure, decentralized communication, with your favorite devices.
GNU Affero General Public License v3.0
63 stars 18 forks source link

[Notifications] Add daily emails notifications #2059

Open Facyla opened 1 month ago

Facyla commented 1 month ago

Describe the feature

Add a daily (or optionally weekly, monthly, or even hourly) email notice that enumerates or lists the missed notifications since last email.

Describe the solution you'd like or your expectation

This notification would offer user a possibility to catch up with recent Twake Chat messages that user can not be aware of if the app is not up ( (which can happen for many reasons, including mobile OS battery saving), or if the web-app has is not active (ie. it has lost connection and hasn't been reloaded yet).

Use case: i regularly miss Twake Chat updates in channels because i am not notified of it by any mean.

Describe alternatives you've considered

Mobile notification is nice BUT they are not sent if the app is not active. Also notification on the web version are even less usable, as they typically do not work after waking up the computer, so basically they do not work when starting a work day. => both are not reliable. So having some notification that works offline and in any situation (ie. without the app active) seems a key feature to avoid missing notifications.

Additional context

No response

DianaPotokina commented 1 month ago

we will think about it. Thank you

pm-McFly commented 1 month ago

Hi!

This could be discussed backend-side, otherwise it could lead to the front sending emails... what do you think? @hoangdat

btw, found these related documentations: https://github.com/matrix-org/synapse/issues/3619 https://github.com/matrix-org/synapse/issues/1247#issuecomment-312139419

One thing that front would require, is the according toggle button in the settings to allow the user to enable/disable the notification.

Facyla commented 1 month ago

Hi, There is a major reason this can be done only on backend side: if the front is not loaded, it can't process anything, while it is precisely in thee situations that email/summary notifications make the most sense :) Settings could be OFF / ON with a frequency such as hourly, daily, weekly, monthly.