keyboard_backspace wifi_off

Web NFC

This feature is not (yet) supported on your device.

The Web NFC API enables web apps to read and write to NFC tags when they are in close proximity to the device, usually 5-10 cm or 2-4 inches.

Demo

Fill in the form with your data below and write it to the NFC tag by tapping the "Write" button and holding the tag close to your device.

After that you can read the data back by tapping the "Scan" button and holding the tag close to your device.

edit speaker_phone stop
const scanButton = document.querySelector('#scan'); const stopScanButton = document.querySelector('#stop-scan'); const writeButton = document.querySelector('#write'); const name = document.querySelector('#name'); const age = document.querySelector('#age'); const city = document.querySelector('#city'); const nfcDialog = document.querySelector('#nfc-dialog'); const closeButton = document.querySelector('#close-dialog'); let scanning = false; closeButton.addEventListener('click', () => { nfcDialog.close(); }); stopScanButton.disabled = true; const capitalize = string => \`$\{string.substr(0, 1).toUpperCase()\}$\{string.substr(1)\}\
What PWA Can Do Today A showcase of what is possible with Progressive Web Apps today