W3cubDocs

/Web APIs

NDEFReader: NDEFReader() constructor

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 NDEFReader() constructor of the NDEFReader interface returns a new NDEFReader object, which is used to read NDEF messages from compatible NFC devices, e.g. NDEF tags, within the reader's magnetic induction field.

Syntax

js

new NDEFReader()

Parameters

None.

Return value

A new NDEFReader.

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
NDEFReader 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/NDEFReader/NDEFReader