NFCAndroid icon indicating copy to clipboard operation
NFCAndroid copied to clipboard

Thank you for your open-source contributions.

Open deokgyuhan opened this issue 2 years ago • 2 comments

Hello, I am a Flutter developer. I am working on an app that needs to perform NFC host card emulation on Android and read NFC data on iOS. While searching for resources, I came across your NFCReaderiOS and NFCAndroid libraries. After testing them for a few days, I found that they work perfectly on the latest versions of iOS and Android. I would like to use them as a reference for my project and wanted to express my gratitude by leaving a message on your issues page. There are no issues to report, but I wanted to say thank you. Wishing you happiness always, and once again, thank you very much.

deokgyuhan avatar Jul 31 '23 15:07 deokgyuhan

@deokgyuhan Hello, Thank you so much for reaching out and sharing your positive experience with our NFCReaderiOS and NFCAndroid libraries. I'm thrilled to hear that they are working perfectly for your app's requirements on both iOS and Android platforms.

I was feeling self-doubt and depressed for quite a while. Your words really cheered me up and gave me some motivation to continue my journey.

thank you very much for your kind words and appreciation.

underwindfall avatar Aug 11 '23 11:08 underwindfall

Hello! I'm the Flutter developer who expressed gratitude in our previous conversation. I've been testing on various devices, and encountered some issues with Android 13. I referred to the documentation, made modifications to a part of your source code related to "READ_CAPABILITY_CONTAINER_RESPONSE," and conducted tests. I'm happy to report that it's working well on Android 13 as well. Due to the diversity of Android devices, I tested on versions 11-13 and on four different device models. I found some recent information related to this issue, and based on that(https://github.com/MichaelsPlayground/NfcHceNdefEmulator), I modified a portion of your source code as follows. It's working really well. Please take this into consideration. Thank you so much once again. Since connecting with Flutter, everything seems to be working perfectly.

<modified code - KHostApduService> private val READ_CAPABILITY_CONTAINER_RESPONSE = byteArrayOf( 0x00.toByte(), 0x0F.toByte(), // CCLEN length of the CC file 0x20.toByte(), // Mapping Version 2.0 0x00.toByte(), 0x3B.toByte(), // MLe maximum 0x00.toByte(), 0x34.toByte(), // MLc maximum 0x04.toByte(), // T field of the NDEF File Control TLV 0x06.toByte(), // L field of the NDEF File Control TLV 0xE1.toByte(), 0x04.toByte(), // File Identifier of NDEF file 0x00.toByte(), 0xFF.toByte(), // Maximum NDEF file size of 65534 bytes 0x00.toByte(), // Read access without any security 0xFF.toByte(), // Write access without any security 0x90.toByte(), 0x00.toByte(), // A_OKAY )

deokgyuhan avatar Aug 18 '23 14:08 deokgyuhan