Stick a tag the size of a coin on your dashboard or bedside table, tap your phone on it, and the phone sets itself up for driving or for sleep. This guide explains what NFC actually is, how a tag triggers an automation, and then walks you through both setups on iPhone and on Android.
Tap the tag in the car: Driving Focus (or an equivalent) turns on, YouTube Music opens on your playlist, and after a short pause Google Maps opens ready for directions.
Tap the tag at the bedside: Sleep Focus or Do Not Disturb turns on, your bedtime music opens, and a 30-minute timer stops playback when it ends.
NFC stands for Near Field Communication. It is a very short-range wireless link, the same technology behind tap-to-pay cards and phone wallets. "Near field" is the important part: it only works when two devices are within a few centimetres of each other, roughly the width of two fingers. That short range is a feature, not a weakness. Nothing gets read by accident from across a room.
Your phone's NFC antenna creates a tiny magnetic field. When a tag enters that field, the field itself powers the small chip inside the tag, and the chip answers by modulating the field. The whole exchange takes a fraction of a second and happens on the 13.56 MHz radio band.
A chip and a coil antenna sealed in a sticker, card or key fob. It stores a small amount of data and a unique ID (UID) set at the factory. Passive, so it needs no battery.
Anything that powers up a tag and reads it: a payment terminal, a door-access panel, or a phone. The reader supplies the energy; the tag just responds.
A phone with an NFC chip. It can act as a reader (scan tags), as a "card" (tap to pay), and it runs the automation software that does the real work.
This is the single most useful thing to understand. A tag is a key; your phone is both the lock and the machinery behind it. On iPhone, Shortcuts recognises the tag by its unique ID and does not write anything to it. Some Android methods write a tiny record to the tag that says "open me". Either way, the list of actions is stored and executed on the phone.
Both connect a physical object to your phone, but they behave differently.
| Aspect | NFC tag | QR code |
|---|---|---|
| How it is read | Radio, with a quick tap while the screen is on | Camera, which you have to open and aim |
| Range | A few centimetres | Tens of centimetres, in decent light |
| Can it be changed later? | Yes, rewrite it (until locked) | No, print a new one |
| Can it trigger a phone automation? | Yes: iPhone Shortcuts and Android automation apps have NFC triggers | Not as a trigger; it mostly opens a link |
| Visible? | Can be hidden under a surface | Must be printed in plain sight |
| Cost | A small cost per tag | Free to print |
The rest of this guide focuses on the last few: using a tag as a trigger for automations that change phone settings and open the apps you need.
iPhone: the Shortcuts NFC trigger needs an iPhone XS, XS Max, XR or newer. Older models such as the iPhone 7, 8 and X can read tags inside some apps but cannot use the Shortcuts NFC automation.
Android: most mid-range and flagship phones include NFC; many budget models do not. Search your Settings for "NFC" or check the manufacturer's spec sheet.
Look for NTAG213, NTAG215 or NTAG216 tags: they are the common, widely supported "NFC Forum Type 2" tags sold as stickers, cards and key fobs. Any of them works for the automations here; the bigger numbers just hold more data if you also want to store a link.
Buy an on-metal (anti-metal) version if the tag will sit on a metal surface, and avoid tags sold as already locked or pre-written.
iPhone: the built-in Shortcuts app. Nothing else to install for this workflow.
Android: Modes and Routines on supported Samsung Galaxy phones, or an automation app such as MacroDroid or Tasker. Android has no universal built-in NFC automation feature.
For Drive Mode: Google Maps or Apple Maps, plus your music app. For Sleep Mode: your music app and, on iPhone, the built-in Clock. Install and sign in to them before you build the automation so there is less to debug later.
Expect differences. NFC support, the actions you can automate, which permissions they need and whether they run silently all vary by phone model, operating system version and app. Where this guide says "where supported", check the option exists on your own phone rather than assuming.
Open Shortcuts, go to the Automation tab and tap + (on iOS 16 and earlier, tap Create Personal Automation). Scroll the list of triggers. If you see NFC, your iPhone supports it. iPhone XS, XR and every later model show it; iPhone 7, 8 and X do not, because they cannot read tags in the background.
Shortcuts is pre-installed on every iPhone (reinstall it from the App Store if it was removed). It has three tabs: Shortcuts holds the lists of actions you build, Automation holds the triggers that run them (time, location, NFC and more), and Gallery has ready-made examples. An NFC tag setup is a Personal Automation whose trigger is a tag and whose job is to run a shortcut.
iOS 16 and earlier: tap Create Personal Automation.
The NFC antenna is at the top of the phone, around the camera area on the back. Hold it still for a second until the phone vibrates or shows the tag as detected.
iOS 16 and earlier: turn off Ask Before Running and confirm. NFC is one of the triggers Apple allows to run without confirmation.
Choose an existing shortcut from your list, or tap New Blank Automation to add actions directly inside the automation.
Wake the screen (it can stay locked), then tap the top of the iPhone to the tag. A banner appears saying the automation is running, followed by the actions. If nothing happens, make sure the screen is on and the Camera app is not open, since the camera viewfinder pauses background tag reading. Apple Pay and Wallet also take over NFC while they are active.
No NFC-writing app needed. Shortcuts recognises the tag by its unique ID. It never writes to the tag, so a brand-new blank sticker works straight out of the packet.
Nothing is stored on the tag. The link between tag and actions exists only on your iPhone. Anyone else who taps the same tag gets nothing. Best for phone settings and multi-step routines.
Needs a third-party tag-writer app. The data lives on the tag, so any phone that scans it sees the link: iPhones show a banner you tap to open, Android phones may open it directly. Best for sharing a website, menu or contact.
You can do both on one tag, but on iPhone that means a link banner appears at the same time as the automation runs, which gets confusing. For automations, keep the tag blank.
Open Settings and use the search box at the top to search for NFC. On stock-style Android it usually lives under Connected devices and then Connection preferences; on Samsung phones it is under Connections as "NFC and contactless payments". If search finds nothing, your phone most likely has no NFC hardware, and no app can add it.
Switch the NFC toggle on. Some phones also offer a setting that requires the phone to be unlocked before NFC is used; that is fine for tags, because Android normally only reads tags while the screen is on and the phone is unlocked anyway. Leave tap-to-pay settings as they are; they do not affect tag reading.
Android has no single built-in NFC automation feature that every phone shares. Pick the method that matches your phone:
Who: Samsung Galaxy phones on a One UI version that includes an NFC condition. Built in, no cost.
How: Settings → Modes and Routines → Routines → + → under If, choose the NFC tag condition (shown as "NFC tagged" on recent versions) and scan the tag when asked. Add your actions under Then and save.
Note: Samsung writes a small record to the tag, so the tag must be writable and not locked. If the NFC condition is missing from your If list, your device or software version does not support it; use an app instead.
Who: any Android phone with NFC. Free to start; the free tier has had limits such as a macro cap and ads, with a paid Pro upgrade. Check the current terms in the app.
How: Add Macro → Triggers + → Device Events → NFC Tag → Write New Tag, hold the tag to the phone and name it. Then add Actions (volume, Do Not Disturb, launch app, open URL) and optional Constraints.
Note: MacroDroid writes to the tag, so it must be writable. Actions that change system settings ask for permissions such as Do Not Disturb access or Modify system settings.
Who: people who want maximum control and do not mind a learning curve. Tasker is a paid app (a trial is offered on its website).
How: recent versions include a built-in NFC Tag event (Profiles → + → Event → Net → NFC Tag) and can write tags from inside the app. Older tutorials rely on separate plugin apps; prefer the built-in event.
Note: some settings actions need extra permissions granted through a companion app or ADB. Follow Tasker's own prompts and documentation for those.
Unlock the phone, then hold the back of it against the tag. Android NFC antennas are usually in the upper or middle part of the back, but the position varies by model, so slide the phone slowly over the tag the first time to find the sweet spot. The first scan may show a chooser asking which app should handle the tag; pick your automation app and choose Always.
Not every Android phone can do every action silently. Changing Do Not Disturb, brightness or Bluetooth needs permissions you grant once; some phones add extra battery or background restrictions that stop automation apps from running reliably. If a macro stops working after a while, check the app's battery optimisation settings first.
Goal: one tap on a tag mounted in the car, while parked, and the phone is ready for the journey. You decide which of these actions to include, based on what your phone supports:
Driving Focus on iPhone, or Do Not Disturb / a driving mode on Android, so notifications stay quiet.
A preferred level for navigation prompts and music, where the platform offers a volume action.
Google Maps or Apple Maps opens ready for directions, with your destination filled in or one tap away.
Open a playlist, turn on Bluetooth, or any other driving-related setting your device exposes.
Four actions, in this order. The Wait gives YouTube Music time to open before Google Maps takes over the screen. Volume and other extras are optional additions.
Tap the title at the top (or the arrow next to it) to rename. You can also pick an icon and colour. The name is yours to choose; the tested one is simply called Directions.
Any Focus works here, including a custom one you made yourself. If Driving is not offered, create it first in Settings → Focus → +, and set its "Turn on automatically" option to Manually so the tag and your car's Bluetooth do not fight over it.
In YouTube Music, open the playlist, album or artist page you want, tap Share, copy the link and paste it into the Open URL action. YouTube Music opens on that page; press Play if it does not start by itself. Spotify or Apple Music links work the same way, and Apple Music also has a Play Music action that does start playback.
Without the pause, Google Maps opens before YouTube Music has finished loading. Seven seconds was enough in testing; shorten it once you know how fast your phone is.
Google Maps adds its own actions to Shortcuts once the app is installed. Search for "Directions" and pick the one with the Google Maps icon. Open When Run brings Google Maps to the front so you can confirm the destination and tap Start before moving; set the destination inside the action if yours offers that field, otherwise choose it when Google Maps opens. Prefer a fixed destination? Use an Open URL action with one of the links below instead, or Apple's Show Directions action, which can also hand off to Google Maps or Waze. Optionally add Set Volume anywhere in the list for a fixed media level.
Automation tab → + → NFC.
Tap Scan, hold the top of the iPhone to the tag mounted in the car, and name it "Car". Choose Run Immediately.
Wake the screen, tap the tag, and watch each action. Adjust the Wait length or Focus duration, then test again before relying on it.
https://www.google.com/maps/dir/?api=1&destination=Coimbatore
https://maps.apple.com/?daddr=Coimbatore
Both links open a route from your current location to the destination. On iPhone the Google Maps link may open in Safari or hand off to the Google Maps app, depending on how iOS resolves it; the Apple Maps link opens Apple Maps directly. Google's URL format also accepts &travelmode=driving, and &dir_action=navigate asks Maps to start navigation where that is supported.
Important limitations
Options depend on your phone: turn on Do Not Disturb (some Pixels also offer a Driving schedule under Do Not Disturb), switch to a Driving mode on Samsung, or turn on Bluetooth for your car stereo. The app asks for Do Not Disturb access the first time.
Add a Launch App action for Google Maps, or an Open URL action with the Google Maps link above. On Android the link opens the Google Maps app directly and shows the route preview; &dir_action=navigate may start navigation on supported versions.
Unlock the phone, tap the tag, and grant any permission prompts. Run it two or three times to make sure every action behaves the same way each time.
Not every Android device can change every setting, and some actions open an app rather than acting silently. If an action is missing from your app's list, that phone or app simply does not expose it; leave it out rather than hunting for a workaround while you are in the car.
Safety first
Goal: a tag on the bedside table that winds the phone down for the night with one tap. Choose from these actions according to what your phone supports:
Silences notifications and dims the lock screen on iPhone; Do Not Disturb or Bedtime mode on Android.
A low screen brightness, where the platform offers a brightness action.
A quiet media level for music or white noise.
Open a bedtime playlist, start a 30-minute stop timer, or open a sleep or journaling app.
Three actions. The timer stops the music only because of a one-time setting in the Clock app, explained in step 5 below.
Shortcuts tab → + → rename it. The tested one is called Good Night; any name works.
Sleep Focus is tied to the sleep schedule in the Health app. If Sleep is not offered, choose Do Not Disturb instead, or create a custom Focus called Bedtime in Settings → Focus.
Share a playlist, album or artist page from YouTube Music and paste the link. Read the playback note below: you may still need to press Play.
This is the Clock app's timer action. On its own it just rings after 30 minutes; the next step turns it into a sleep timer.
Open Clock → Timer → tap When Timer Ends → scroll to the very bottom and choose Stop Playing → Set. Clock remembers this choice, and the Start a Timer action in your shortcut uses it, so 30 minutes after you tap the tag the music stops. You only need to revisit Clock if you want a timer sound back.
Automation tab → + → NFC → Scan the bedside tag → name it "Bedside" → Run Immediately → Next.
Tap the tag with the screen on. Focus changes immediately, YouTube Music opens (unlock if asked), and the timer starts counting in Clock.
YouTube Music limitation. Opening a playlist link gets you to the playlist, in the app or in Safari, but it does not guarantee that playback starts automatically. In most cases you still press Play once. That is a platform behaviour, not a mistake in your shortcut.
The iPhone Clock has a timer option that stops whatever is playing when the timer ends. Once you have chosen Stop Playing in the Clock app (step 5 above), every timer uses it, including the one your shortcut starts. If you would rather not automate it, the manual version is the same four taps after you tap the tag:
Two things to know. First, this stops media system-wide: YouTube Music, Apple Music, podcasts and videos all stop. Second, Stop Playing is a global Clock setting, so your next kitchen timer will also be silent until you switch it back to a sound.
Shortcuts' Start a Timer action cannot choose what happens when the timer ends; it inherits whatever Clock is set to, which is why step 5 matters. Some users have reported older iOS versions ignoring the setting when a shortcut starts the timer, so test it once: if the timer rings instead of stopping the music, re-check When Timer Ends in Clock.
Put plainly: with this setup one tap turns on Sleep Focus, opens your music and arms a 30-minute stop timer. Pressing Play may still be on you, and this guide does not promise a fully hands-free routine where the platform cannot deliver one.
Pixels and many other phones have Bedtime mode in Digital Wellbeing, which can combine Do Not Disturb with a grey-scale screen. Samsung offers a Sleep mode in Modes and Routines. Automation apps can toggle Do Not Disturb directly once you grant access.
Apps need the Modify system settings permission for this. If the action is not available on your phone, turn on Adaptive brightness and skip it.
As on iPhone, opening a link does not guarantee playback starts.
Android has no system-wide "stop playing" timer like the iPhone Clock. Options: use the sleep timer built into your music app where it has one, or in MacroDroid or Tasker add a 30-minute wait followed by a media Pause action, where those actions are supported.
Exactly which of these actions exist, and whether they run silently, depends on the phone manufacturer, the Android version, the permissions you grant and the music app you use.
| Feature | iPhone | Android |
|---|---|---|
| NFC tag scanning | Supported on compatible models (iPhone XS, XR and later for automations) | Supported on compatible models; check Settings for NFC |
| NFC-triggered automation | Apple Shortcuts, built in | Built-in routines on supported Samsung phones, or compatible automation apps |
| Driving Focus or equivalent | Set Focus action; options vary by iOS version | Device and app dependent (Do Not Disturb, driving modes) |
| Navigation shortcut | Google Maps' Directions action, Apple Maps' Show Directions, or map links | Google Maps or another compatible navigation app |
| Bedtime routine | Shortcuts and Sleep Focus | Built-in modes (Bedtime mode, Sleep mode) or automation apps |
| Fully automatic execution | Depends on the action and permissions; opening apps needs an unlocked phone | Depends on device, app and permissions; phone must usually be unlocked |
| Does the tag need to be written? | No; Shortcuts uses the tag's unique ID | Often yes; Samsung Routines and MacroDroid write a record to the tag |
dir_action=navigate parameter may start navigation where supported. Treat the preview as the expected result.No. Passive tags are powered by the phone's radio field while it is within a few centimetres. They work for years with nothing to charge or replace.
The tag works with both, but the automation lives on the phone. An iPhone Shortcuts automation exists only on that iPhone; an Android routine exists only on that Android phone. Each phone needs its own setup on the same tag.
One wrinkle: Samsung Routines and MacroDroid write a small record to the tag. An iPhone tapping that tag will show it as a link banner while also running its own automation, if you set one up.
Yes. The tag only starts the automation; the shortcut, routine or macro can hold as many actions as the platform allows, run in order. Both examples on this page chain four or more actions from one tap.
Usually, with conditions. iPhone: an Open App or Open URL action runs if the phone is unlocked and asks you to unlock otherwise. Android: the phone has to be unlocked with the screen on, and the first scan may ask which app should handle the tag.
Not for the tap. Reading the tag and running local actions such as Focus, volume and brightness work offline. Actions that fetch data, such as maps directions or a streaming playlist, need a connection.
On a supported iPhone, yes: Shortcuts is built in and is all you need. On Android, supported Samsung Galaxy phones have an NFC condition in Modes and Routines; most other phones need an automation app such as MacroDroid or Tasker. Simply reading a tag that holds a link needs no app on either platform.
Yes, unless it has been locked. NTAG-type tags can be rewritten many thousands of times, and an iPhone Shortcuts automation can be deleted and recreated with the same tag any time. Locking (making a tag read-only) is permanent, so only do it for tags left in public places.
No. A tag is a passive memory chip. Scanning it does not execute code, does not install anything and does not grant an app any permission. Automations run only because you set them up on your own phone beforehand.
The realistic risk is a tag that holds a misleading link: you tap a banner that looks like a menu and land on a phishing page. The defence is the same as for any link: read the address before tapping, and only accept automation or permission prompts you were expecting. If you leave tags in shared spaces, lock them so nobody can rewrite them.
Security in one paragraph. Scanning a tag is not the same as granting permissions. Your phone still asks before anything sensitive happens, and the automations in this guide only exist because you built them. Stay sceptical of unexpected links and prompts, keep automations that open apps behind the lock screen, and you have covered the real risks.