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 NDEFMessage interface of the Web NFC API represents the content of an NDEF message that has been read from or could be written to an NFC tag. An instance is acquired by calling the NDEFMessage() constructor or from the NDEFReadingEvent.message property, which is passed to the reading event.
NDEFMessage() Experimental
Creates a new NDEFMessage object, initialized with the given NDEF records.
NDEFMessage.records Read only Experimental
Returns the list of NDEF records contained in the message.
| Specification |
|---|
| Web NFC> # dom-ndefmessage> |
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Opera | Safari | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | WebView Android | WebView on iOS | |
NDEFMessage |
No | No | No | No | No | 89 | No | 63 | No | 15.0 | 89 | No |
NDEFMessage |
No | No | No | No | No | 89 | No | 63 | No | 15.0 | 89 | No |
records |
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 |
© 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/NDEFMessage