Web NFC API

W3C Editor's Draft

This version:
http://w3c.github.io/nfc/index.html
Latest published version:
https://www.w3.org/TR/nfc/
Latest editor's draft:
http://w3c.github.io/nfc/index.html
Editors:
Kenneth Rohde Christiansen (Intel)
Zoltan Kis (Intel)
Repository:
We are on Github.
File a bug.
Commit history.

Abstract

This document provides a collection of use cases and usage scenarios for web pages and applications using Near Field Communication (NFC). More information about Web NFC can be found here.

This specification defines an API to manage selected NFC use-cases from Web applications and pages, and to enable new use-cases based on NFC technology.

Status of This Document

This section describes the status of this document at the time of its publication. Other documents may supersede this document. A list of current W3C publications and the latest revision of this technical report can be found in the W3C technical reports index at https://www.w3.org/TR/.

This document provides informative background to the Web NFC specification. Comments on the document should be filed as issues at https://github.com/w3c/nfc/issues.

This document was published by the NFC working group as an Editor's Draft.

Comments regarding this document are welcome. Please send them to public-nfc@w3.org (archives).

Publication as an Editor's Draft does not imply endorsement by the W3C Membership. This is a draft document and may be updated, replaced or obsoleted by other documents at any time. It is inappropriate to cite this document as other than work in progress.

This document was produced by a group operating under the W3C Patent Policy. W3C maintains a public list of any patent disclosures made in connection with the deliverables of the group; that page also includes instructions for disclosing a patent. An individual who has actual knowledge of a patent which the individual believes contains Essential Claim(s) must disclose the information in accordance with section 6 of the W3C Patent Policy.

This document is governed by the 1 March 2019 W3C Process Document.

1. Terminology

For NFC terminology see the Web NFC specification.

2. Use Cases

This section is non-normative.

A few NFC user scenarios have been enumerated here. For the Web NFC API in particular, a few examples of intended user scenarios follow next.

2.1 Reading generic information in a museum

The user touches an NFC capable device to information points of works of arts in a museum, obtaining information about the exposed items. Also, by touching information points in halls, the user can get suggested itineraries, schedule and other information to the personal device for later consultation.

2.2 Reading information in administration office

In a population administration office, the user touches in information point in order to save a list of documents required for renewing a passport, and obtaining a the next queuing number for the clerk.

2.3 Updating tag information

A museum employee touches information points with a special device which can write to the museum's NFC tags in order to update (read, then write) information on them.

2.4 Sending image to another Web NFC capable device

While a user is actively interacting with web site, e.g. https://images.example.com/, and if the user taps the device with another device where another user is actively interacting with the same web site https://images.example.com/, then they can initiate sending an image from one device to the other, using the NFC connection or by handover to Bluetooth or WiFi connection. The second device may be for instance a TV set to show the picture, or a personal computer for image processing.

2.5 Handover to Bluetooth

NFC supports handover protocols to Bluetooth or WiFi connectivity for the purpose of larger volume data transfer. The user touches another NFC capable device, and as a result configuration data is sent for a new Bluetooth or WiFi connection, which is then established between the devices.

A related use case for gaming has been described here. Other use cases may include bulk transfer of contacts cards, photos, and other data.

2.6 Payment to another user

The user navigates to a web site which manages seller and buyer accounts and touches the device to another device of another user. A payment can be made between the two users' accounts.

2.7 Payment for services

On an automated point of sales terminal, such as ticketing machines, the user navigates to a web site which offers the paid service. By touching the receiver area of the point of sales, the payment can be done and the ticket can be delivered electronically to the user's device.

3. Acknowledgments

The editors would like to express their gratitude to Jonas Sicking and Jeffrey Yasskin.