admin管理员组文章数量:1384189
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
1 Answer
Reset to default 2Yes 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
本文标签: javascriptReading NFC tags in the browserStack Overflow
版权声明:本文标题:javascript - Reading NFC tags in the browser - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744459549a2607165.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论