core-nfc

Read and write NFC tag data on iOS using CoreNFC APIs.

Updated May 10, 2026
One-click install
npx skills add https://github.com/FelixRauch/medat-figuren --skill core-nfc-felixrauch
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: core-nfc
Source: https://github.com/FelixRauch/medat-figuren/tree/main/.agents/skills/core-nfc
Command: npx skills add https://github.com/FelixRauch/medat-figuren --skill core-nfc-felixrauch

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Core NFC integration solves the challenge of safely scanning and writing data to NFC tags on iOS devices, including handling different tag types, permissions, and session lifecycles.

Core Features & Use Cases

  • NDEF tag reading: Scan NDEF-formatted tags and parse URL/text/MIME/custom records.
  • Multi-protocol tag access: Read ISO 7816, ISO 15693, FeliCa, and MIFARE tags via tag reader sessions.
  • NDEF writing: Construct NDEF messages and write them only when the tag is confirmed writable.
  • Lifecycle-safe sessions: Validate availability, delegate handling, and proper invalidation/error filtering to prevent misleading failures.
  • Background tag reading: Support tag-triggered user activity flows for compatible NDEF content.

Quick Start

Start by ensuring your app has the required NFC capability, Info.plist usage string, and com.apple.developer.nfc.readersession.formats entitlement, then use NFCNDEFReaderSession to scan for NDEF messages and parse each record.

Frequently Asked Questions about core-nfc

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I read and write NFC tags on iOS using CoreNFC?

To read and write NFC tags on iOS, use CoreNFC APIs to manage reader session lifecycles, parse NDEF records, and construct payloads. You must configure specific iOS entitlements and Info.plist usage strings before accessing the tag reader.

What iOS entitlements do I need to scan NFC tags?

Scanning NFC tags requires enabling the NFC capability in your app and adding the com.apple.developer.nfc.readersession.formats entitlement to your project configuration. An Info.plist usage string is also required to prompt the user correctly.

Can I write NDEF payloads to an NFC tag only when it is confirmed writable?

Yes, you can write NDEF payloads safely by validating the tag's NDEF status before attempting to write. Constructing the NDEF message and checking writability prevents failed write operations and ensures data integrity.

Does CoreNFC support reading non-NDEF tag protocols like MIFARE and FeliCa?

CoreNFC supports reading non-NDEF tag protocols including ISO7816, ISO15693, FeliCa, and MIFARE. You can perform specific protocol operations via tag reader sessions to access data beyond standard NDEF formats.

How do I handle NFC reader session invalidation errors and background tag reading?

Handle NFC reader session invalidation by filtering error codes to prevent misleading failures and ensure lifecycle-safe sessions. Background tag reading is supported by configuring tag-triggered user activity flows for compatible NDEF content.