osstech-jp / libjeid-ios-app

LibJeID sample appication for iOS
https://www.osstech.co.jp/download/libjeid/
4 stars 3 forks source link

RC card reading issue - “Tag connection lost” #1

Open TinkuGeorge opened 3 years ago

TinkuGeorge commented 3 years ago

When connecting and reading data from RC card, most of the time an error is returning saying “Tag connection lost”. It seems due to the connection timeout issue in Tag reader session. https://developer.apple.com/forums/thread/118922 I have tried by running the libjeid-ios-app app and also my project integrated with the RC card reading codes. In both the application, timeout error is occurring frequently.

kizayami commented 3 years ago

Thanks for the report.

We often encounter "Tag connection lost", but we don't know the best solution for this problem. As for the cause of "Tag connection lost", we know the following:

If you want to read only residence cards, try changing app/Info.plist as follows. We have confirmed that removing irrelevant AIDs may make it easier to read the cards.

        <key>com.apple.developer.nfc.readersession.iso7816.select-identifiers</key>
        <array>
-               <string>A00000023101</string>
-               <string>A00000023102</string>
-               <string>D392F000260100000001</string>
-               <string>D3921000310001010401</string>
-               <string>D3921000310001010402</string>
-               <string>D3921000310001010408</string>
                <string>D392F0004F0200000000000000000000</string>
                <string>D392F0004F0300000000000000000000</string>
                <string>D392F0004F0400000000000000000000</string>

After making the above changes, the AIDs for the driver's license (A00000023101, A00000023102) and the AIDs for individual number card (D392F000260100000001, D3921000310001010401, D3921000310001010402, D3921000310001010408) will be removed, so please note that these two cards will no longer be readable.

For reference, I would appreciate it if you could tell me the model and OS of your iPhone.

TinkuGeorge commented 3 years ago

Thank you for the detailed update. I will try based on your comments. I am using iPhone 12 Pro(iOS 14) and iPhone 7(iOS 14) for the development and I am working with RC card, Driving licence and Number card.

kizayami commented 3 years ago

Thanks for the information.