[bug] Clicking on notification does not unminimize the app.
Describe the bug
When the tauri app is running in the background[as in not in focus], and a notification is clicked, it brings the app to the front[puts it in focus]. But when the app is minimized [from the - in title bar], clicking on the notification does not unminimize it like other desktop apps.
Also, are there any plans to support click handlers on notifications to perform certain action? I can see some open issues around it, not sure if they are still relevant or handled already.
Reproduction
- Create an app that sends native notifications.
- Minimise the app.
- Click on native notification, and nothing happens.
Expected behavior
If the app is minimized, and a notification is clicked, it should unminimise the app, and bring it to focus.
Full tauri info output
> tauri info
[✔] Environment
- OS: Mac OS 14.1.2 X64
✔ Xcode Command Line Tools: installed
✔ rustc: 1.75.0 (82e1608df 2023-12-21)
✔ cargo: 1.75.0 (1d8b05cdd 2023-11-20)
✔ rustup: 1.26.0 (5af9b9484 2023-04-05)
✔ Rust toolchain: stable-aarch64-apple-darwin (default)
- node: 18.19.0
- pnpm: 5.5.3
- yarn: 1.22.4
- npm: 10.2.3
[-] Packages
- tauri [RUST]: 1.4.1
- tauri-build [RUST]: 1.3.0
- wry [RUST]: 0.24.3
- tao [RUST]: 0.16.1
- @tauri-apps/api [NPM]: 1.5.3
- @tauri-apps/cli [NPM]: 1.5.9
[-] App
- build-type: bundle
- CSP: unset
- distDir: ../dist
- devPath: https://app.struct.ai/
- framework: React (Next.js)
- bundler: Webpack
Stack trace
No response
Additional context
No response
Hi @FabianLars, just needed to know if I am doing something incorrectly or the support needs to be added. Again, thank you for all your contributions. This project is amazing.
As far as i know this is not native OS behavior, is it? (at least not on all 3, no idea about macOS specifically) Not 100% sure but that's what i always assumed.
Also, are there any plans to support click handlers on notifications to perform certain action? I can see some open issues around it, not sure if they are still relevant or handled already.
I doubt it'll be added to v1 at this point but imho it's a must for the notification plugin in v2 before we can release it as stable.