WebNFC Article #7950
Description
https://bugs.chromium.org/p/chromium/issues/detail?id=520391
This feature gives developers the ability to access Near Field Communication (NFC) functionality of a device, such as reading and writing NFC tags as well as exchanging data between NFC capable devices.
Comparable chrome.* APIs: none
Public Discussion: https://www.w3.org/community/web-nfc/
Explainer: https://github.com/w3c/web-nfc
Spec: http://w3c.github.io/web-nfc/
ChromeStatus Entry: https://www.chromestatus.com/features/6261030015467520
Changes to API surface:
Web NFC API is added and could be accessed through navigator.nfc object.
Examples:
// Pushes message to passive NFC tag or active NFC device (e.g., mobile device)
navigator.nfc.push("Hello NFC!").then(() => { console.log("Completed"); });
// Watches for NFC tags / active devices in proximity.
navigator.nfc.watch(message => { console.log("Message: " + JSON.stringify(message)); });