最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Reading NFC tags in the browser - Stack Overflow

programmeradmin2浏览0评论

As I was working on an E-wallet system, my boss assigned me a job to allow our agents to be able to top-up the clients' wallets by reading their NFC cards. The agents are using a web browser client to browse their CMS part of the System, I made that myself. Is it possible to read NFC through the web browser?

I thought that wouldn't be possible by writing a JavaScript code on an HTML page, but I imagine that this could be done by making a browser extension. However, I'm not sure if that's the way to go. and what would be the next.

As I was working on an E-wallet system, my boss assigned me a job to allow our agents to be able to top-up the clients' wallets by reading their NFC cards. The agents are using a web browser client to browse their CMS part of the System, I made that myself. Is it possible to read NFC through the web browser?

I thought that wouldn't be possible by writing a JavaScript code on an HTML page, but I imagine that this could be done by making a browser extension. However, I'm not sure if that's the way to go. and what would be the next.

Share Improve this question asked Mar 28, 2022 at 15:58 NormalNormal 3,8067 gold badges37 silver badges82 bronze badges 1
  • the NFCs are stuck on a plastic card, the client has to go to an agency where he can pay actual money in order to top up his account. – Normal Commented Mar 28, 2022 at 16:01
Add a ment  | 

1 Answer 1

Reset to default 2

Yes possible depending on a lot of factors via https://w3c.github.io/web-nfc/ but very limited support in terms of browser supported (only some Android web browsers). see https://developer.mozilla/en-US/docs/Web/API/Web_NFC_API

You are also limited currently to Ndef message format as well as well as some other security limitations, which is probably not used by your NFC cards

发布评论

评论列表(0)

  1. 暂无评论