Framework

Core NFC

Detect NFC tags and read messages that contain NDEF data.

Overview

Your app can read tags to give users more information about their physical environment and the real-world objects in it. Using Core NFC, you can read Near Field Communication (NFC) tags of types 1 through 5 that contain data in the NFC Data Exchange Format (NDEF). For example, your app might give users information about products they find in a store or exhibits they visit in a museum.

Topics

First Steps

Building an NFC Tag Reader App

Use Core NFC to read tags with NDEF messages in your app.

Adding Support for Background Tag Reading

Allow users to scan NFC tags without an app using background tag reading.

Reader Sessions

NFCNDEFReaderSession

A reader session for detecting NFC Data Exchange Format (NDEF) tags.

NFCReaderSession

A general interface for interacting with a reader session.

NFCReaderSession

The abstract base class that represents a reader session for detecting NFC tags.

Near Field Communication Tag Reader Session Formats Entitlement

The Near Field Communication data formats the app is allowed to read.

Key: com.apple.developer.nfc.readersession.formats

NFC Tags

NFCTag

A collection of attributes that represent an NFC or RFID tag.

NFCTagCommandConfiguration

A set of parameters you use to define the configuration of an NFC tag command.

NDEF Messages

NFCNDEFMessage

An NFC NDEF message, which consists of an array of records, each of which contains a payload.

NFCNDEFPayload

A payload in an NFC NDEF message.

NFCTypeNameFormat

The Type Name Format field values that specify content types in an NFC NDEF message.

Errors

NFCReaderError

Reader session and tag error codes.

NFCErrorDomain

The error domain for errors associated with Core NFC APIs.