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