tauri-apps / tauri-apps/plugins-workspace

[feat] Notification onclick event

Open
#2,150 24 comments 48 reactions 0 assignees View on GitHub
plugin: notification type: feature request
Dominant language
Rust
Stars
1.8k
Forks
602
Avg merge
4d 14h
Merged PRs (30d)
9

Description

### Describe the problem

I am running my Tauri app in the tray and I only want to show the UI when the user responds to a notification. I can't seem to subscribe to any notification onclick event.

### Describe the solution you'd like

I would like to be able to subscribe to a click event, like so:

```
let n = new Notification('title', { body: 'some text' });
n.onclick = function() { console.log('click happened') };
```

### Alternatives considered

_No response_

### Additional context

_No response_

Contributor guide

Open the contributing guide

Research direction

No implementation files or tests are named in the issue. Start by reviewing the Tauri notification plugin's existing API and the 24-comment discussion to determine the supported click-event design and platform scope. Done means applications can subscribe to a notification click and receive the event reliably.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust, tauri
Domain
desktop
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.