proposals icon indicating copy to clipboard operation
proposals copied to clipboard

NFC

Open maxbauer opened this issue 4 years ago • 16 comments

Plugin Request

Name: NFC Package: @capacitor-community/nfc

Platform(s)

  • iOS
  • Android
  • Web (for the future, depends on W3C Draft WebNFC)
    • seems that it works already on the latest Chrome Version: https://web.dev/nfc/

Existing Solutions

Phonegap-NFC

Description

Clean Capacitor plugin for NFC communication. Remove support for old platforms like Blackberry 7, 10 and WP8. With the functionalities form the phonegap plugin:

  • read data from NFC tags
  • write data to NFC tags
  • send data to other NFC enabled devices
  • receive data from NFC devices
  • send raw commands (ISO 14443-3A, ISO 14443-3A, ISO 14443-4, JIS 6319-4, ISO 15693) to NFC tags

maxbauer avatar Jan 28 '21 11:01 maxbauer

Hey dude, I actually have some experience with Android NFC. I can help tackle this if you're down to collab on it.

PolymorphiK avatar Feb 02 '21 08:02 PolymorphiK

Possibly a more modern codebase as starting point (forked from Phonegap-NFC): https://github.com/iotize-sas/device-com-nfc.cordova

mobidev111 avatar Feb 07 '21 09:02 mobidev111

@imhoffd @IT-MikeS When can we expect a decision if the nfc plugin will be added to the repository?

maxbauer avatar Apr 09 '21 06:04 maxbauer

I'm afraid I don't have any permissions to do that.

However maybe @elylucas would be able to help you out

IT-MikeS avatar Apr 09 '21 20:04 IT-MikeS

Any news about this? I would be happy to manage this package if needed.

samhoogantink avatar Nov 23 '21 09:11 samhoogantink

I'm currently working on a NFC plugin with Android, iOS and web support. Are there any functionalities that you have been missing in previous solutions? Do you have any specific use cases?

robingenz avatar Apr 21 '22 19:04 robingenz

@robingenz that sounds amazing! I'm currently making heavy use of readerMode from the @ionic-native/nfc package

adnathanail avatar Jun 13 '22 15:06 adnathanail

@adnathanail Good to know! I'll put it on my roadmap. The first version will be ready in a few weeks.

robingenz avatar Jun 13 '22 17:06 robingenz

I wonder if there is any finished nfc plugin now.

SrknMcT avatar Aug 16 '22 16:08 SrknMcT

@SrknMcT You are lucky. I'm finally done and will announce my plugin tomorrow.

robingenz avatar Aug 16 '22 17:08 robingenz

Great news! Does it have built-in support to read credit card numbers( Most just read tag ids) ? Anyway, I am waiting it impatiently...

SrknMcT avatar Aug 16 '22 17:08 SrknMcT

The Capacitor NFC plugin is now available as sponsorware! 🎉

🔋 Supports Android, iOS and the Web ⚡️ Capacitor 3 and 4 support 🔧 Utility functions 🔔 Background Tag Reading

Checkout the announcement blog 👇 https://dev.to/capawesome/announcing-the-capacitor-nfc-plugin-1550

robingenz avatar Aug 17 '22 11:08 robingenz

@SrknMcT This should be possible with NFC raw commands which is part of the roadmap. I'm having some time off soon and plan to invest another week into the plugin and its features. In that time I should be able to implement this. Currently, mainly NDEF is supported, which should already be useful for many. Therefore the first release.

@adnathanail The Android Reader Mode is also on the roadmap and should be ready soon.

robingenz avatar Aug 17 '22 11:08 robingenz

Hi @robingenz , will I be able to scan NFC of passports and read its data using your sponsorware?

rs2-davebanguilan avatar Oct 28 '22 13:10 rs2-davebanguilan

@rs2-davebanguilan So far the plugin only supports NDEF but in two weeks there will be a new update with NFC Custom Command support. Whether it is then possible, I do not know, because I have never tested it. As far as I know reading passports via NFC is not very easy and you often take special libraries for it like e.g. https://jmrtd.org/

robingenz avatar Oct 28 '22 13:10 robingenz

@SrknMcT @rs2-davebanguilan The plugin now also supports NFC raw commands. Let me know if you have any questions.

robingenz avatar Nov 11 '22 15:11 robingenz