Can I get any further information from NFC tag's serial number?

490 Views Asked by At

I want show card number using NFC. But I only can get uid from nfc tag. I'm using nfc_manager package and my code like this :

void _tagRead() {
    NfcManager.instance.startSession(onDiscovered: (NfcTag tag) async {
      var _tag = tag.data["isodep"]["identifier"]
          .map((e) => e.toRadixString(16).padLeft(2, '0'))
          .join('');
      NfcManager.instance.stopSession();
    });
  }

Dont understand what can I do with this id ?

1

There are 1 best solutions below

0
Andrew On

So with iOS it is not possible to get any details as the docs iOS NFC it says

Important

Core NFC doesn't support payment-related Application IDs.

Apple want to keep interactions with NFC enabled bank cards to themselves.

While on Android it is technically possible but complicated and I've not seen anything doing it in flutter (though it should be possible).

You can send and receive the same C-APDU's and R-APDU's as native code used in these examples https://stackoverflow.com/a/34434136/2373819