What problem does it solve?
Integrating NFC into iOS apps is error-prone and requires correct entitlements, Info.plist entries, session lifecycle handling, and support for multiple tag protocols; this Skill consolidates practical patterns and checks to implement reliable NFC read/write workflows.
Core Features & Use Cases
- NDEF Read & Write: Patterns to scan NDEF tags, parse common payloads (URLs, text, MIME), construct messages, and write safely after checking tag status and capacity.
- Tag Protocol Support: Direct NFCTag access for ISO7816 APDU exchanges, ISO15693 block reads, FeliCa and MIFARE operations, locking tags, and multi-record messages.
- Entitlements & Background Reading: Guidance for com.apple.developer.nfc.readersession.formats, NFCReaderUsageDescription, associated domains, and handling background tag launches via NSUserActivity.
- Robust Session Management: Best practices for availability checks, delegate lifecycle, distinguishing expected invalidations (user cancel / first-read) from real errors, and graceful recovery strategies.
Quick Start
Use the core-nfc skill to read an NFC tag's NDEF records and return a JSON summary of URLs and text payloads.