EYALIN / community-cordova-plugin-nfc

PhoneGap NFC Plugin
MIT License
8 stars 3 forks source link

iOS nfc.transceive support #6

Open boemekeld opened 1 month ago

boemekeld commented 1 month ago

Hi @EYALIN, thank you for creating this fork! We will use it in our project.

Do you think it's possible to support sending raw commands (APDU) on iOS? On Android, this is already implemented with nfc.transceive.

EYALIN commented 4 weeks ago

@boemekeld can you give me the whole use case and I will try to check ? also, how can I reproduce it ?

boemekeld commented 4 weeks ago

I'm using nfc.transceive to send APDU commands to a custom JavaCard Applet running on an NFC Smartcard. The problem is that the current support for this plugin is only available on Android. For iOS, it will be necessary to implement it using the sendCommand method of the NFCISO7816Tag class. The NFCTagReaderSession class and its connect method will also be required to use sendCommand. To reproduce this, it would be ideal to test with a physical tag.

https://developer.apple.com/documentation/corenfc/nfciso7816tag/3043835-sendcommand

nickveliki commented 2 weeks ago

came here to request the same. Iso7816 is common protocol used in NFC Cards with high security applications like health insurance, govenrment id, and banking

EYALIN commented 2 weeks ago

@nickveliki @boemekeld sounds important. will start working on it next week and will update

nickveliki commented 2 weeks ago

@EYALIN awesome