devnied/EMV-NFC-Paycard-Enrollment

Strange issue when card is unknown after valid one

sergiocasero opened this issue · 0 comments

Hello folks!

I'm facing a really strange issue, let me try to explain:

I have two cards:

  1. Spanish DNIe
  2. VISA card

And these are the scenarios:

  1. Read DNIe: In this case, everything is ok, the card isn't detected so I can manage it -> OK
  2. Read VISA: In this case, everything is ok, the card is recognized and I can extract all the data from it
  3. Read VISA and THEN read DNIe: In that strange case, the lib is returning the VISA one, doesn't matter the times I put the DNIe card, is recognized as VISA. I've detected that what's happening is that the lib is returning the latest "recognized" one, because if I repeat the flow but with mastercard, DNIe is recognized as MASTERCARD.

If I kill the app, everything is restored so the DNIe returns to the "1" case, which is ok.

Any tips?? I've tried by calling close for all the classes I detected but with no luck, the issue is raising in a Samsung Galaxy S8 device.

Thanks in advance!