nfc: reader mode on Android, and raw commands to a tag without NDEF

Open
#3,781 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 3 days

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
38/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
android, ios, rust
Domain
mobile

Research direction

Start with android/src/main/java/NfcPlugin.kt:481 and :494 to trace the current Android scanning flow and its foreground dispatch behavior. Then locate the Android and iOS NFC implementations to see how tag reads are exposed; the issue names IsoDep, NfcA, and NFCTagReaderSession as relevant entry points. Done means supporting Android reader mode and raw tag commands on both platforms, including tags without NDEF.

Written by the indexing model from the issue text.

Description

tauri-plugin-nfc 2.4.2.

Two capabilities a point-of-sale or asset-tracking app needs when it reads tags that carry no NDEF message:

  • Reader mode on Android. Scanning uses foreground dispatch (enableForegroundDispatch, android/src/main/java/NfcPlugin.kt:494), and the code marks reader mode as the intended path (:481). Foreground dispatch lets the system's own tag handling and sounds run beside the app.
  • Raw commands to a tag. There is no way to exchange commands with a tag directly: no transceive over IsoDep or NfcA on Android, and none over an NFCTagReaderSession tag on iOS. A tag that holds an identifier and no NDEF message can only be read by its identifier.
Dominant language
Rust
Stars
1.8k
Forks
637
Avg merge
5d 3h
Merged PRs (30d)
36

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from tauri-apps/plugins-workspace

All issues in tauri-apps/plugins-workspace

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.