ryanhz / nfc_emulator

Flutter plugin to emulate an NFC card, work in peer to peer mode.
MIT License
35 stars 18 forks source link

NFC Emulator is not working #8

Open ihakhverdiyev2019 opened 1 year ago

ihakhverdiyev2019 commented 1 year ago

Hello, I just install the repo and run example project however I couldn't run the nfc tag in the nfc reader. Does any one solve this problem ?

ryanhz commented 1 year ago

This NFC Emulator plugin was written mainly for the CIDRON reader (the AID is in the example): http://www.civintec.com/info_22.aspx?itemid=35

This kind of reader is using peer-to-peer mode to exchange data, which includes the AES encrypted card UID.

Note: It is impossible for Android to emulate an NFC tag with constant UID in host card emulation mode, please refer to https://stackoverflow.com/questions/46484272/emulate-nfc-card-with-selected-uid-on-android and https://stackoverflow.com/questions/9662979/how-to-fix-uid-in-nfc.