Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NFC Host-based card emulation plugin #218

Open
thangman22 opened this issue Sep 20, 2024 · 2 comments
Open

NFC Host-based card emulation plugin #218

thangman22 opened this issue Sep 20, 2024 · 2 comments

Comments

@thangman22
Copy link

Plugin Request

Name: nfc-hce
Package: @capacitor-community/nfc-hce

Platform(s)

  • iOS
  • Android

Existing Solutions

Currently I develop my own plugin https://www.npmjs.com/package/capacitor-hce-plugin to solve this problem. but still support only Android

Description

This plugin will help the developer emulate NDEF NFC directly from the phone. It is a different NFC plugin from those in this market because standard NFC plugins only provide read/write capability, while this one offers emulator capabilities. Now iOS 17.4 already supports NFC HCE, this plugin should benefit both Android / iOS platforms.

@robingenz
Copy link
Member

Great work! Thank you for your contribution to the Capacitor community.

It is a different NFC plugin from those in this market because standard NFC plugins only provide read/write capability, while this one offers emulator capabilities.

I just want to point out that the Capacitor NFC plugin from Capawesome also offers support for HCE, since you mention other plugins here: capawesome-team/capacitor-plugins#155 (comment) ^^

@thangman22
Copy link
Author

@robingenz I appreciate you mentioning about Capacitor NFC plugin. This plugin is designed specifically for HCE with NDEF format, not full NFC support like Capacitor NFC, Which will not overlap with Capacitor NFC. Unfortunately, even the stable Capacitor NFC doesn't support HCE yet. Also, HCE implementation is quite robust for NDEF emulation, still need some work, and isn't ready to use for this usecase

That's why I'm developing a simpler HCE plugin. Learning the Bytearray response for ADPU commands is challenging, and I want to make it easier for everyone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants