0

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 ?

Lala Naibova
  • 396
  • 1
  • 3
  • 22
  • Do you know any more details about the purpose of the Tag? As it can store data or provide responses in many other different ways. A Nfc Tag id is just designed to allow the system to prevent Tag clash when there are multiple different Tags in range at the same time. So in NFC terms there is no significance of the Tag ID as to what the Tag is meant for. – Andrew Mar 06 '23 at 15:35
  • Thank you for your response. I want to take card information(card number) via nfc. Is it possible ? – Lala Naibova Mar 07 '23 at 08:19
  • I'm guessing here that this is some type of payment card that has contact less capabilities? And you are wanting the card number that is used to process payments? – Andrew Mar 07 '23 at 08:40
  • yes you are right, this is bank app – Lala Naibova Mar 07 '23 at 09:22

1 Answers1

1

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

Andrew
  • 8,198
  • 2
  • 15
  • 35