Skip to content

Better notifications on Desktop #11786

Description

@Brendonovich

To support rich notifications (integrated deeplinks, fancy content) we're probably going to need to drop tauri-plugin-notiifcation and use the system APIs.

Windows

Not sure about project favicon support.
For deeplinking:

Windows APIs That DO Support Deeplinks

Option 1: Windows App SDK (Recommended)

// AppNotificationBuilder supports protocol activation
var builder = new AppNotificationBuilder()
.AddArgument("action", "openUrl")
.AddArgument("url", "myapp://page/123")
.AddText("New message")
.AddButton(new AppNotificationButton("Open")
.AddArgument("action", "open")
.SetInvokeUri(new Uri("myapp://page/123")));
Option 2: WinRT Toast Notifications The tauri-winrt-notification crate (already a dependency of notify-rust) provides some WinRT capabilities but has limited documentation on protocol activation.

Option 3: Custom Protocol Handler You'd need to:

Register your app to handle a custom protocol (e.g., myapp://) in the registry
Use Windows App SDK notifications with protocol activation
Handle the protocol activation when the app launches

thanks kimi

macOS

For deeplinking: UNUserNotificationCenter + AppDelegate for responding to events
Project favicons: Communication Notifications - am working on this

Linux

tbd

Metadata

Metadata

Assignees

Labels

webRelates to opencode on web / desktop

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions