Skip to content

[plugin-barcode-scanner] QR-Code Format can't be disabled on android #3337

@Mewlkor

Description

@Mewlkor

Describe the bug

The android code always adds the QR-Code format to the list of supported formats for scanning.

.setBarcodeFormats(Barcode.FORMAT_QR_CODE, *mappedFormats).build()

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

> 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


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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions