tauri-apps / tauri-apps/plugins-workspace
[plugin-barcode-scanner] QR-Code Format can't be disabled on android
- Dominant language
- Rust
- Stars
- 1.8k
- Forks
- 602
- Avg merge
- 4d 14h
- Merged PRs (30d)
- 9
Description
### Describe the bug
The android code always adds the QR-Code format to the list of supported formats for scanning.
https://github.com/tauri-apps/plugins-workspace/blob/ea033fe3b8df59b359cc23a71f2a935d400c4e58/plugins/barcode-scanner/android/src/main/java/BarcodeScannerPlugin.kt#L258
I am not sure if this also happens on iOS but as far as i can tell it only affects android.
### Reproduction
1) Create minimal Tauri app for android
2) Add barcode scanner plugin
3) set format list to exclude QR code
4) Scan QR code
### Expected behavior
A format list without QR-Code should not scan any QR-Codes.
### Full `tauri info` output
```text
> tauri info
[✔] Environment
- OS: Arch Linux Rolling Release x86_64 (X64) (Hyprland on wayland)
✔ webkit2gtk-4.1: 2.50.5
✔ rsvg2: 2.61.4
✔ rustc: 1.93.1 (01f6ddf75 2026-02-11)
✔ cargo: 1.93.1 (083ac5135 2025-12-15)
✔ rustup: 1.28.2 (2026-02-26)
✔ Rust toolchain: stable-x86_64-unknown-linux-gnu (default)
- node: 23.6.0
- npm: 10.9.2
- deno: deno 2.6.6
[-] Packages
- tauri 🦀: 2.10.2, (outdated, latest: 2.10.3)
- tauri-build 🦀: 2.5.5, (outdated, latest: 2.5.6)
- wry 🦀: 0.54.2
- tao 🦀: 0.34.5, (outdated, latest: 0.34.6)
- @tauri-apps/api ⱼₛ: 2.10.1
- @tauri-apps/cli ⱼₛ: 2.10.0 (outdated, latest: 2.10.1)
[-] Plugins
- tauri-plugin-opener 🦀: 2.5.3
- @tauri-apps/plugin-opener ⱼₛ: 2.5.3
- tauri-plugin-log 🦀: 2.8.0
- @tauri-apps/plugin-log ⱼₛ: 2.8.0
- tauri-plugin-barcode-scanner 🦀: 2.4.4
- @tauri-apps/plugin-barcode-scanner ⱼₛ: 2.4.4
- tauri-plugin-fs 🦀: 2.4.5
- @tauri-apps/plugin-fs ⱼₛ: not installed!
- tauri-plugin-dialog 🦀: 2.6.0
- @tauri-apps/plugin-dialog ⱼₛ: 2.6.0
[-] App
- build-type: bundle
- CSP: unset
- frontendDist: ../build
- devUrl: http://localhost:1420/
- framework: Svelte
- bundler: Vite
```
### Stack trace
```text
```
### Additional context
I linked the offending line. This is only an issue since i have some cases where barcodes and QR-Codes appear in the same frame and i only want barcodes.
Contributor guide
Assessment
This issue has not been assessed yet.