What problem does it solve?
This Skill solves the problem of building reliable NFC tag scanning and writing flows on iPhone so you can read and create NDEF content without runtime crashes or incorrect session handling.
Core Features & Use Cases
- NDEF tag reading: Reads NDEF messages and iterates records for URLs, text, MIME, and external payloads.
- Native tag protocol access: Uses
NFCTagReaderSession to work with ISO7816, ISO15693, FeliCa, and MIFARE tags via connected tag operations.
- NDEF writing & safety checks: Constructs
NFCNDEFPayload/NFCNDEFMessage and writes only after verifying the tag is readWrite.
- Entitlements and background reading: Guides required NFC entitlements and supports iOS background tag reading using
NSUserActivity.
- Quality guardrails: Covers common mistakes like missing entitlements, forgetting
readingAvailable, mis-handling invalidation errors, and stale session references.
Quick Start
Use the core-nfc skill to implement an iOS NFC flow that checks NFCNDEFReaderSession.readingAvailable, starts NFCNDEFReaderSession, parses NFCNDEFMessage records, and writes a URL payload only after confirming NDEF status is read-write.