Skip to content

fix: improve TagPigeon export to support ISO 14443 NFC tags on Android #234

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

yakupkahraman
Copy link

I encountered an issue while working with NFC cards that are not NDEF compatible but follow the ISO 14443 standard. When trying to read data from such tags using the nfc_manager package on Android, the output was "instance of TagPigeon" instead of the actual tag data.

To fix this, I exported pigeon.g.dart properly to enable direct access to the tag's low-level data, allowing correct handling and parsing of ISO 14443 tags.

This change improves compatibility with a wider range of NFC tags that are commonly used but not NDEF formatted.

For example, to get the tag ID, you can now do:

_id = (tag.data as TagPigeon).id.toString();

@iassal
Copy link

iassal commented Jul 9, 2025

@okadan Can you please take a look?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants