Google Chrome's new update (81) introduced a massive improvement from Augmented Reality, NFC , Nicer default styling for form elements and many more..
How you can use NFC in Javascript
if ("NDEFReader" in window) {
const reader = new NDEFReader();
await reader.scan();
reader.onreading = ({ message }) => {
console.log(`Message read from a NFC tag: ${message}`);
};
}
Read more here
Chrome 81 Updates
Top comments (4)
Wouldn't this be a better way to check for NFCReader support?
That's possible..It's just a matter of preference
Thanks for the update! I haven't been keeping much up to date with Chrome lately.
I the main ones are Chrome only features though :(
Web NFC is a draft - w3c.github.io/web-nfc/ - and both Mozilla and Safari have expressed serious concerns about privacy and security.
Web XR is a draft as well - w3.org/TR/webxr/ - In this case Mozilla is supporting it and going to implement it in Firefox
Thanks for the references