NFC with Apple Shortcuts

Automate iOS with NFC Tag Triggers

Using NFC tags as triggers for Apple Shortcuts automation. Covers tag scanning, shortcut creation, HomeKit integration, and practical automation examples.

| 5 min read

NFC with Apple Shortcuts: Automate iOS

Apple Shortcuts supports NFC tagNFC tagFundamentalsPassive unpowered device storing data, powered by reader's RF fieldClick to view → reading natively since iOS 13, and background tag reading (without opening Shortcuts) since iOS 14 on supported hardware. This enables a wide range of automations triggered by tapping an NFC tag — no coding required.

How Shortcuts NFC Automation Works

When an NFC tag is tapped on a supported iPhone:

  1. The system reads the tag's ndef payload (URI or Text recordText recordNDEFNDEF record for human-readable text with language codeClick to view →)
  2. If a Shortcuts Personal Automation matches the tag's UID or text content, it fires
  3. The automation runs — optionally without asking for confirmation (iOS 15+)

The Shortcuts NFC trigger uses the tag's UID as the identifier, not the NDEF payload. This means any NFC tag (blank or encoded) can trigger a Shortcut — the tag's content is secondary.

Setting Up Your First NFC Automation

Requirements: - iPhone XS or later (iPhone 7/8 require iOS 14+ for background reading) - iOS 13+ for basic NFC automation; iOS 14+ for background triggers

Steps: 1. Open ShortcutsAutomation tab → +Personal Automation 2. Scroll to NFC under "When..." 3. Tap Scan and hold your iPhone near the NFC tag 4. Name the tag (this name is for your reference only) 5. Tap Next and add actions 6. Toggle Ask Before Running to Off (iOS 15+) for instant execution

Useful NFC Automation Examples

Trigger Tag Actions Use Case
Bedside tag Set Do Not Disturb ON, dim screen, set alarm for 7 AM Sleep routine
Car dashboard tag Enable Bluetooth, open Maps, set volume to 60% Driving mode
Desk tag Turn off Do Not Disturb, open Calendar, set Focus mode Work mode
Coffee shop tag Connect to specific Wi-Fi (open Settings), open music app Cafe routine
Front door tag Run HomeKit scene "Leaving", lock smart lock Exit routine

Encoding Tags for Shortcuts

While Shortcuts can be triggered by any tag (using UID), you can also encode NDEF data on the tag to ensure it opens the correct URL on any device — not just iPhones with the automation configured.

Recommended approach: 1. Encode a https:// URI on the tag (works on all NFC-capable devices) 2. Also set up a Shortcuts automation matching the same tag's UID 3. When iPhone taps the tag: Shortcuts automation fires (ignores NDEF) 4. When Android or other device taps: opens the URL from NDEF

This dual-path design ensures your tag is useful to guests and non-iOS devices.

iOS 14 Background Tag Reading

From iOS 14, compatible iPhones automatically read NFC tags in the background — no need to open an app or unlock the device. This uses the tag's NDEF URI to trigger Universal Links or Shortcuts automations.

Requirements for background reading: - Supported devices: iPhone XS, XR, 11, 12, 13, 14, 15, 16 series - Tag must contain a valid NDEF ndef-uri record with https:// prefix - The URI should be registered as a Universal Link in your app (if app-launch is desired) - Shortcuts automations also fire in background if NFC trigger is set up

Limitation: Background reading does not fire if the device has just been powered on and not yet unlocked (BFU state). Require one unlock to initialise the NFC daemon.

Combining NFC with HomeKit

NFC + Shortcuts + HomeKit is a powerful combination for home automation:

Tag at light switch:
  Action 1: Toggle HomeKit scene "Evening Lights"
  Action 2: Set Adaptive Lighting to 2700K

Tag in kitchen:
  Action 1: Run HomeKit scene "Cooking"
  Action 2: Start Kitchen Timer for 20 min

Tag at front door:
  Action 1: Lock HomeKit smart lock
  Action 2: Arm security system (via HomeKit)
  Action 3: Turn off all lights

See NFC Smart Home Automation for a comprehensive home automation guide.

Troubleshooting Apple Shortcuts NFC

Issue Cause Fix
Automation doesn't fire NFC disabled or iPhone XR or earlier on iOS 13 Verify NFC in Control Centre
"Couldn't read NFC tag" Tag physically failed or wrong orientation Try different orientation; test tag on Android
Automation fires but asks to run "Ask Before Running" still enabled Shortcuts → Automation → edit → toggle off
Multiple automations fire Two NFC tags in field simultaneously Separate tags by ≥ 5 cm
Shortcut runs but HomeKit fails HomeKit hub (HomePod/Apple TV) offline Check hub connectivity
Background reading not working Non-supported device, or iOS < 14 Verify model in About; update iOS

NFC Tag Recommendations for Shortcuts

The Compatibility Checker confirms iOS compatibility. For Shortcuts use: - NTAG213 is ideal: 144 bytes is more than enough for a URL, and it is universally supported - NTAG215 if you want to also store vCard or Wi-Fi credentials on the same tag - Avoid tags with password-protection — iOS Shortcuts cannot authenticate to protected tags - Avoid ISO 15693ISO 15693Standards & ProtocolsStandard for vicinity-range smart cards, 1+ meter read rangeClick to view → (nfc-v) tags — iOS does not support them for Shortcuts automations

See Also

Perguntas frequentes

Our guides cover a range of experience levels. Getting Started guides are written for beginners with no prior NFC knowledge. Programming guides target developers integrating NFC into mobile apps or embedded systems. Security guides are for engineers designing secure NFC deployments for payments, access control, or authentication.

Most guides require only an NFC-enabled smartphone (iPhone 7+ or any modern Android device) and a few NFC tags (NTAG213 or NTAG215 recommended for beginners, available for under $1 each). Advanced guides may reference USB NFC readers like the ACR122U or Proxmark3 for development and testing.

Yes. Programming guides include code examples for Android (Kotlin/Java with the Android NFC API), iOS (Swift with Core NFC), and web-based tools (Web NFC API for Chrome on Android). All code samples are tested and include inline comments explaining each step.