capawesome-team / capacitor-nfc

⚡️ Capacitor plugin for reading and writing NFC tags.
https://capawesome.io/plugins/nfc/
MIT License
73 stars 14 forks source link

feat: Raw commands support #6

Closed robingenz closed 2 years ago

robingenz commented 2 years ago

Is your feature request related to a problem? Please describe:

Support NFC raw commands.

Describe the solution you'd like:

Add connect, transceive and close methods.

Describe alternatives you've considered:

Additional context:

tpharaoh commented 2 years ago
com.apple.developer.nfc.readersession.formats NDEF TAG

something like this also needed? To enable raw?

robingenz commented 2 years ago

Hi @tpharaoh, thank you for your interest in this issue. This issue is already closed, but the update is not officially released yet. With this dev build you can already test this new feature:

npm i @capawesome-team/capacitor-nfc@0.2.0-dev.06f6ccc.1667402920

com.apple.developer.nfc.readersession.formats

Yes, you should also add the necessary iOS entitlement (see this example).

tpharaoh commented 2 years ago

I am testing with your nfc demo first, is there a branch I can pull there?

If not, I can wait a but ... I was just hugely curious!

robingenz commented 2 years ago

is there a branch I can pull there?

@tpharaoh Yes, it is actually already on the main branch.

tpharaoh commented 2 years ago

ok, I got it working, in android. My ultimate goal is to read the data from a credit card/debit card. I'll ask more another time

victorybiz commented 2 years ago

@tpharaoh I'm preparing for a similar project to read PAN, track2_data, etc from a credit/debit card, kindly share feedback when you're able to read these data using this plugin.