-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Native notifications #4803
Comments
The first thing we should do is to gather info on how notifications work in various OS (including mobile ones). We can't design the API otherwise. Notifications are either persistent and survive the app restart (most notification APIs) or ephemeral (Linux). The way the system delivers action events (e. g. when notification is clicked) is also different, OSX delivers though app-wide events, Windows has So I suppose that notification events will have to be routed through |
Activated does not get delivered after a restart. You can however provide this |
I am also thinking the public API should not be async. We could use |
Fire-and-forget approach leads to swallowed exceptions. |
Because it simplifies long method calls which would freeze the UI and give the user the impression that the app has crashed. |
There is a bit information how notifications work in Windows: microsoft/WindowsAppSDK#137 |
It seems to me that system notifications are quite independent of any UI framework. Maybe such a feature would be better implemented as a third-party library instead? |
@mstr2 Yeah. That could be an option as well. @grokys @kekekeks @MarchingCube What do you guys think? Should native notifications be part of the core framework or shipped as part of a external library? |
Is this feature implemented already or it's still in development? |
@nitanmarcel Development is currently on halt until we figure out the requirements. I might be looking into creating a third-party library (something like |
For anybody interested: I put most of the code from the PR in to a standalone library for now. https://github.com/pr8x/DesktopNotifications Closing this ticket for now. CC: @nitanmarcel |
So the native OS notification PR (#3389) is currently on halt due to unclear requirements. I would like to get back to developing on it, but we first need to resolve some questions:
TopLevel
. I recall that @grokys did not really like this (?).ToastNotification
API but supporting Windows 10 is certainly easier due to the convenientMicrosoft.Windows.SDK.Contracts
package.We should probably figure out the application registration before everything else. Also instead of making a giant PR with all platform support we should start slow with Windows (10) support and ship other OS one-by-one.
Any thoughts?
The text was updated successfully, but these errors were encountered: