This feature is not Baseline because it does not work in some of the most widely-used browsers.
Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.
Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The NDEFReadingEvent interface of the Web NFC API represents events dispatched on new NFC readings obtained by NDEFReader.
NDEFReadingEvent.NDEFReadingEvent() Experimental
Creates a new NDEFReadingEvent.
Inherits properties from its parent, Event.
NDEFReadingEvent.message Read only Experimental
Returns an NDEFMessage object containing the received message.
NDEFReadingEvent.serialNumber Read only Experimental
Returns the serial number of the device, which is used for anti-collision and identification, or an empty string if no serial number is available.
Inherits methods from its parent, Event.
| Specification |
|---|
| Web NFC> # dom-ndefreadingevent> |
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Opera | Safari | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | WebView Android | WebView on iOS | |
NDEFReadingEvent |
No | No | No | No | No | 89 | No | 63 | No | 15.0 | 89 | No |
NDEFReadingEvent |
No | No | No | No | No | 89 | No | 63 | No | 15.0 | 89 | No |
message |
No | No | No | No | No | 89 | No | 63 | No | 15.0 | 89 | No |
secure_context_required |
No | No | No | No | No | 89 | No | 63 | No | 15.0 | 89 | No |
serialNumber |
No | No | No | No | No | 89 | No | 63 | No | 15.0 | 89 | No |
© 2005–2025 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/NDEFReadingEvent