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

Notifications of previous sessions don't work #2438

Open
Simon-Laux opened this issue Nov 27, 2021 · 5 comments
Open

Notifications of previous sessions don't work #2438

Simon-Laux opened this issue Nov 27, 2021 · 5 comments
Labels
enhancement New feature or request

Comments

@Simon-Laux
Copy link
Member

when closing DeltaChat it's notifications stay, but even after re-opening DC they don't work anymore (you can click on them all you want nothing happens, at least on MacOS). Furthermore those notifications are not cleared, when reading the messages they belong to.

This is likely an electron issue, so the only thing we could do is trying to clear notifications on exiting DeltaChat, but that might not be a good idea, because they could sometimes remind the user of messages they missed.
So maybe we should close this with the #wont-fix label for now?

@Simon-Laux Simon-Laux added the bug Something isn't working label Nov 27, 2021
@Simon-Laux
Copy link
Member Author

see also #2199 and #2198

@Simon-Laux
Copy link
Member Author

looks like this is an general electron problem: electron/electron#32261

@Simon-Laux
Copy link
Member Author

signal seems to close all notifications when you close the app, this could maybe also be an option

@nicodh
Copy link
Contributor

nicodh commented Jul 5, 2024

Since electron "forgets" about all exisiting notifications when closed and there is no chance to access the existing system notifications on start we can't solve this.

@nicodh nicodh closed this as completed Jul 5, 2024
@Simon-Laux
Copy link
Member Author

Simon-Laux commented Jul 5, 2024

It is possible when we use the system apis directly, it is quite common to do that with electron. for example there is a popular npm package for advanced windows notifications (https://www.electronjs.org/de/docs/latest/tutorial/notifications#use-advanced-notifications).

the apis we can use on MacOS
https://developer.apple.com/documentation/usernotifications/unusernotificationcenter/getdeliverednotifications(completionhandler:)
https://developer.apple.com/documentation/usernotifications/unusernotificationcenter/removedeliverednotifications(withidentifiers:)

On windows I'm not sure, could be this:
https://learn.microsoft.com/en-us/uwp/api/windows.ui.notifications.toastnotificationhistory?view=winrt-26100

Linux has dbus, so I assume it's also possible to track notifications via the id across multiple sessions:
https://specifications.freedesktop.org/notification-spec/notification-spec-latest.html

@Simon-Laux Simon-Laux reopened this Jul 5, 2024
@Simon-Laux Simon-Laux added enhancement New feature or request and removed bug Something isn't working wontfix This will not be worked on labels Jul 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants