nfcim / flutter_nfc_kit

Flutter plugin to provide NFC functionality on Android and iOS, including reading metadata, read & write NDEF records, and transceive layer 3 & 4 data with NFC tags / cards
https://pub.dev/packages/flutter_nfc_kit
MIT License
199 stars 116 forks source link

FeliCa IDm cannot be obtained. #183

Open HpYama opened 1 day ago

HpYama commented 1 day ago

NFCTag tag = await FlutterNfcKit.poll(); After polling the tag, I checked tag.id.

In the case of ISO15693 and ISO14443TypeA, all IDs were obtained. However, in the case of FeliCa, all IDs could not be obtained.

Specifically, FeliCa's IDm is 16 digits, but only 8 digits are stored in tag.id.

Harry-Chen commented 1 day ago

On Android, there is no API to read the full IDm, only https://developer.android.com/reference/android/nfc/tech/NfcF#getManufacturer().

You can always use raw Get FeliCa ID commands via transceive to get the full IDm and PMm.

HpYama commented 1 day ago

Thank you for your quick reply.

I apologize for the lack of explanation. I am using iOS.

I understand that it is difficult to obtain all FeliCa IDm using flutter_nfc_kit.

Harry-Chen commented 1 day ago

Thank you for your quick reply.

I apologize for the lack of explanation. I am using iOS.

On iOS, we directly read from currentIDm. So it might be limitation of iOS app.

I understand that it is difficult to obtain all FeliCa IDm using flutter_nfc_kit.

Not actually. As I mentioned, you can always send raw commands.