tauri-apps / tauri-apps/plugins-workspace

[bug] After running `cargo tauri android dev`, the notification plugin is not working on Windows

Open
#1,545 2 comments 0 reactions 0 assignees View on GitHub
platform: windows plugin: notification type: bug
Dominant language
Rust
Stars
1.8k
Forks
602
Avg merge
4d 14h
Merged PRs (30d)
9

Description

Initially, the notification plugin was working fine on Windows. Then, I tested it on an Android device, and it also worked. However, after continuing development and testing on Windows, the notification plugin stopped working. There were no error messages during this process, so I'm not sure if the issue is with the plugin itself.

After running `cargo tauri android dev`, a `config.toml` file is generated with the following content:
```toml
[build]
target = "x86_64-pc-windows-msvc"

[target]
```

If I delete this file, the notification plugin starts working on Windows again.

cargo tauri info:
```
[✔] Environment
- OS: Windows 10.0.22631 X64
✔ WebView2: 120.0.2210.144
✔ MSVC: Visual Studio 生成工具 2022
✔ rustc: 1.79.0 (129f3b996 2024-06-10)
✔ cargo: 1.79.0 (ffa9cf99a 2024-06-03)
✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
✔ Rust toolchain: stable-x86_64-pc-windows-msvc (environment override by RUSTUP_TOOLCHAIN)
- node: 20.11.1
- npm: 9.8.1

[-] Packages
- tauri [RUST]: 2.0.0-beta.24
- tauri-build [RUST]: 2.0.0-beta.19
- wry [RUST]: 0.41.0
- tao [RUST]: 0.28.1
- tauri-cli [RUST]: 2.0.0-beta.22
- @tauri-apps/api [NPM]: 2.0.0-beta.15
- @tauri-apps/cli [NPM]: 2.0.0-beta.22

[-] App
- build-type: bundle
- CSP: unset
- frontendDist: ../dist
- devUrl: http://localhost:1420/
- framework: React
- bundler: Vite
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.