W3cubDocs

/Web APIs

NDEFMessage

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.

Constructor

NDEFMessage() Experimental

Creates a new NDEFMessage object, initialized with the given NDEF records.

Attributes

NDEFMessage.records Read only Experimental

Returns the list of NDEF records contained in the message.

Specifications

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari WebView Android Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet
NDEFMessage No No No No No No 89 89 No 63 No 15.0
NDEFMessage No No No No No No 89 89 No 63 No 15.0
records No No No No No No 89 89 No 63 No 15.0
secure_context_required No No No No No No 89 89 No 63 No 15.0

© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/NDEFMessage