ios-samples/ios11/NFCTagReader
Brad Umbaugh 3392dd3a8e Set MtouchHttpClientHandler to NSUrlSessionHandler for all samples 2018-05-02 12:28:55 -06:00
..
NFCTagReader Set MtouchHttpClientHandler to NSUrlSessionHandler for all samples 2018-05-02 12:28:55 -06:00
Screenshots [ios11] update NFC readme 2017-09-18 13:11:12 -07:00
Metadata.xml CoreNFC Tag Reader (#183) 2017-09-18 09:10:07 -07:00
NFCTagReader.sln CoreNFC Tag Reader (#183) 2017-09-18 09:10:07 -07:00
README.md [ios11] update NFC readme 2017-09-18 13:11:12 -07:00

README.md

NFCTagReader

This sample shows how to integrate Core NFC Framework into your application to enable NFC tag reading.

Sample showing an NFC payload

Overview

Core NFC provides NFC tag reading capabilities to your applications. This sample application will read an NDEF formatted NFC Forum tag (Type 1 to 5) that contains an NDEF message. Clicking on the Scan button will start the tag scanning process. The application will list each NDEF message read from the NFC tag in the main message table view with a single row entry, and the row's label displays the number of NDEF record payloads in the message.

Clicking on a row in the message table will display the payload table view with details on each of the NDEF record stored in the message.

Getting Started

An iPhone 7 or iPhone 7 Plus running iOS 11 is required. The first step is to enable "Near Field Communication Tag Reading" in the project's Capabilities pane to acquire the necessary entitlements. Please visit 'Certificates, Identifiers, and Profiles' in the Apple Developer portal to manually request a provisioning profile if the NFC capability is unavailable in your beta version of Xcode.