Protocol

NFCISO7816Tag

An interface for interacting with an ISO 7816 tag.

Declaration

@protocol NFCISO7816Tag

Overview

The NFCTagReaderSessionDelegate receives an object that conforms to the NFCISO7816Tag protocol when the NFCTagReaderSession detects an ISO 7816-compatible tag. For the delegate to receive the tag object, your app must include:

When the session discovers a compatible ISO 7816 tag, the session performs a SELECT command for each application identifier provided in com.apple.developer.nfc.readersession.iso7816.select-identifiers. The SELECT command searches for the identifiers in the order in which they appear in the array. The session calls the tagReaderSession:didDetectTags: delegate method after the first successful SELECT command. The initialSelectedAID property of the found tag has the selected identifier.

For the reader session to read and write data to the tag, it must be available to the reader session. Use the isAvailable property to check the tag’s availability.

Topics

Specifying Application Identifiers

property list key com.apple.developer.nfc.readersession.iso7816.select-identifiers

A list of application identifiers that the app supports.

Name: ISO7816 application identifiers for NFC Tag Reader Session

Getting Tag Information

initialSelectedAID

A hexadecimal string of the application identifier for the tag selected by the reader session when discovering new tags.

Required.

identifier

The unique hardware identifier of the tag.

Required.

historicalBytes

The historical bytes extracted from the Type A Answer To Select response.

Required.

applicationData

The application data bytes extracted from the Type B Answer To Request response.

Required.

proprietaryApplicationDataCoding

A Boolean value that indicates whether the application data follows proprietary data coding.

Required.

Sending a Command

- sendCommandAPDU:completionHandler:

Sends an application protocol data unit (APDU) to the tag and receives a response APDU.

Required.

NFCISO7816APDU

An object representing an ISO 7816 application protocol data unit (APDU).

Relationships

Inherits From

See Also

Tag Types

Creating NFC Tags from Your iPhone

Save data to tags, and interact with them using native tag protocols.

NFCISO15693Tag

An interface for interacting with an ISO 15693 tag.

NFCFeliCaTag

An interface for interacting with a FeliCa™ tag.

NFCMiFareTag

An interface for interacting with a MIFARE® tag.

NFCNDEFTag

An interface for interacting with an NDEF tag.

NFCTag

An interface for interacting with an NFC or RFID tag.

NFCTagCommandConfiguration

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