tananaev / passport-reader

e-Passport NFC Reader Android app
326 stars 126 forks source link

CardServiceException: Tag was lost. #16

Open klaszlo8207 opened 4 years ago

allinelara commented 4 years ago

I have the same issue

sertunc commented 4 years ago

you have to set nfc timeout and dont't move card while in process

AsilbekAzimqulov commented 3 years ago

how to set timeout?

sertunc commented 3 years ago

https://github.com/tananaev/passport-reader/blob/master/app/src/main/java/com/tananaev/passportreader/MainActivity.java#L249

val nfc = IsoDep.get(tag) nfc.timeout = 5*1000 //5 seconds timeout

typelogic commented 3 years ago

In addition, please find that the NFC chip in the passport is at the back cover. Not the front.

akeilox commented 3 years ago

In addition, please find that the NFC chip in the passport is at the back cover. Not the front.

which country passport would that be ?

typelogic commented 3 years ago

In addition, please find that the NFC chip in the passport is at the back cover. Not the front.

which country passport would that be ?

I tested on a Philippines passport using Huawei Nova YAL-L21 and this application works very well for every capture, I scan at the back cover of the passport.