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

Read NFC tag from Android device(s) with Node.js and nfc-pcsc package #127

Open
kwoxer opened this issue Mar 17, 2022 · 0 comments
Open

Comments

@kwoxer
Copy link

kwoxer commented Mar 17, 2022

I have an Node.js express application that needs to be available on an Android device and being able to access the NFC reader of that device. That NFC shall be used to authenticate the user to my application.

So my idea was to use the nfc-pcsc package. But when I run that it takes the NFC of my server, as expected. But I wondered about why my PC where it runs at has NFC? Anyway here is the reader that was detected:

frontpage loaded
device attached Reader {
  _events: [Object: null prototype] {},
  _eventsCount: 0,
  _maxListeners: undefined,
  reader: CardReader {
  ...

So how to let the NFC package run on the device on client-side? Is this even possible due to security restrictions of the Android OS?

And finally I need multiple tablets with that app, so it would be great if the solution is not resulting in setting up something hard-coded on all of the tablets.

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

No branches or pull requests

1 participant