iPhone

How to Lock Apps on iPhone with Shortcuts

How to Lock Apps on iPhone with Shortcuts

The Shortcuts method for locking apps on iPhone is a single personal automation. You pick the App trigger, set it to Is Opened, and add the Lock Screen action.

After that, opening one of your chosen apps throws the phone back to the Lock Screen, and Face ID, Touch ID or the passcode is needed again.

It runs on iOS 16.4 or later. That’s the March 2023 release that added the Lock Screen action.

One thing to know before you bother: the shortcut locks the whole phone, not the app. Once you authenticate, the app is simply open. Apple’s Require Face ID lock from iOS 18 works differently, since it gates the app directly.

How to set up the iPhone app lock shortcut step by step

YouTube player

Nothing to download here. Shortcuts has come pre-installed since iOS 13, and the whole setup happens inside it.

What you end up with is a personal automation that locks the iPhone the moment a chosen app opens, and getting back in takes Face ID, Touch ID or the passcode.

What the iPhone needs first

Check the iOS version before anything else, because the Lock Screen action doesn’t exist below 16.4. It arrived in March 2023, and Settings, General, About shows what you have installed.

You also need Face ID, Touch ID or a passcode already set up, and the Shortcuts app somewhere on the Home Screen or in the App Library.

A phone with no biometrics enrolled falls back to the passcode alone, so finish setting up Face ID on the iPhone before you test the lock.

Building the automation

  1. Open Shortcuts and tap the Automation tab at the bottom of the screen.
  2. Tap the plus button. On iOS 16 you then pick Create Personal Automation, while newer versions drop that extra choice.
  3. Scroll down and tap App.
  4. Tap Choose, select the app, tap Done, and confirm that Is Opened is selected.
  5. Select Run Immediately, then tap Next.
  6. Tap Add Action, type “Lock Screen” and select it.
  7. Tap Don’t Ask if a prompt appears, then tap Done.
  8. Open the app. The phone should drop straight to the Lock Screen.

The steps above hold from iOS 16 through iOS 26. MacRumors reports that iOS 27 moved automation triggers into the general Shortcuts actions instead of keeping a separate Automation section, so menu labels may differ on newer versions.

Leave Run Immediately on. Without it, the iPhone sends a notification asking whether to run the automation, and the lock sits there waiting for a tap.

Is Opened fires when you open or switch to the selected app, not only when you tap its icon.

Does the shortcut lock the app or the whole iPhone?

The whole iPhone. The Lock Screen action sends the device back to the Lock Screen, and the app never gets a lock of its own.

Open the app or switch to it and the action runs, dropping the phone to the Lock Screen. Face ID, Touch ID or the passcode gets you back in.

There’s no separate app password. You unlock with the iPhone’s own passcode or Face ID, so the lock is only as strong as the phone’s biometrics.

Those biometrics are decent, for what it’s worth. Apple puts the odds of a random person unlocking an iPhone with Face ID at less than 1 in 1,000,000, with a passcode required after five failed attempts (Apple Support). Touch ID is weaker at 1 in 50,000, according to Apple’s 2017 Face ID security guide.

One user on Apple Support Communities reported something odd. The action locks the screen but leaves the display on, so Face ID unlocked the phone again straight away. For the owner that’s a quick check. Anyone else holding the phone just meets the Face ID prompt.

After unlocking, the app is still open and works as usual until you leave it.

Leaving the app and coming back fires the automation again, whether or not you close it from the app switcher.

How to lock several apps or change when the lock fires

Put them all in one automation. The App trigger takes one or more applications, so tap Choose and tick every app that should lock the phone.

That leaves a single place to edit or switch off later. Separate automations only make sense when an app needs a different trigger, and there are just two to pick from.

TriggerFires whenFits
Is OpenedYou open or switch to the appKeeping others out of the app
Is ClosedYou close or switch away from the appLocking the phone after you finish

Apple’s Shortcuts User Guide lists both options under the App trigger.

Is Closed does not keep anyone out of the app. It only locks the phone once you leave it.

Run Immediately stays on for every variant. Notify When Run can stay off, though turning it on while you test gives you proof the automation started.

I’d pick Is Opened unless you have a reason not to.

When the Shortcuts lock fails or gets bypassed

The lock stops casual snooping and nothing more. MacMost calls it a light-security measure for an already-unlocked device.

It does have a few things going for it. There’s no extra app to install, and it reuses the phone’s own Face ID, Touch ID or passcode. One automation covers several apps, too.

The weak spots are easy to find. Anyone holding the unlocked phone can open Shortcuts, tap Automation and turn the automation off. The app is also visible for a moment before the Lock Screen kicks in.

Notifications are the bigger gap. Apple’s own lock for supported apps keeps information inside them out of places such as notification previews, search, Siri suggestions and call history, and the shortcut covers none of those because it only acts when the app opens.

Personal automations are also specific to a device. They’re backed up to iCloud but not synced, so an iPad or second iPhone needs its own.

If the real goal is keeping an app out of someone’s hands, restricting the app outright is the stronger route.

Think of the shortcut as a nuisance for nosy people. It isn’t real protection.

How to make the app lock harder to switch off

Add a second automation that locks the iPhone whenever the Shortcuts app opens. MacRumors suggests the same Lock Screen action for the Shortcuts app as an extra security step.

Build it the same way as the first one and pick Shortcuts as the app. Someone who opens Shortcuts to delete the lock automation lands on the Lock Screen first.

Tech Gorilla points to Require Face ID on Shortcuts as the cleaner fix on iOS 18 and later. The catch is that Apple’s guide lists Shortcuts among the built-in apps that can’t be locked that way, alongside Calculator, Camera, Clock, Contacts, Find My, Maps and Settings. The second automation is the dependable route.

Notification previews are the second leak.

Settings, Notifications, Show Previews offers Always, When Unlocked and Never, and individual apps can override the choice.

Show PreviewsLocked phoneUnlocked phone
AlwaysText shownText shown
When UnlockedHiddenShown
NeverHiddenHidden

This matters because the Shortcuts lock is really aimed at a phone that’s already unlocked in someone else’s hands, and When Unlocked still shows full previews in exactly that situation. Never hides the content either way.

Pick Never for the apps you locked.

After each change, open Shortcuts and confirm the Lock Screen appears. Then trigger a notification from a locked app and read the banner on the unlocked phone.

Why is the app lock automation not running?

Start with Ask Before Running, since a pending confirmation looks exactly like a lock that does nothing. After that, look at the trigger type, then the on/off toggle, and last the iOS version.

SymptomLikely causeFix
Banner asks to run, lock waitsAsk Before Running is onTurn it off, tap Don’t Ask
Nothing happens on openAutomation switched off, or wrong appTurn the toggle back on, recheck the app list
Phone locks as you leave the appIs Closed selectedSwitch the trigger to Is Opened
Lock Screen action missingiOS below 16.4Update iOS

Apple’s guide puts the switch under Automation. Tap the automation, turn off Ask Before Running, tap Don’t Ask, then tap Done. As of November 2026, the same page lists App among the triggers that can run without asking.

A disabled automation fails silently. Apple’s page says a disabled automation will not notify you or run automatically.

Labels differ by source. Matthew Cassinelli documented the iOS 17 beta wording as Run Immediately instead of Run After Confirmation, while Apple’s support page still calls the switch Ask Before Running.

If the confirmation banner keeps appearing with Ask Before Running off, delete the automation and build it again. One MacRumors Forums user reported the prompt returning even after a rebuild following iOS 18.2, so test again afterwards.

Shortcuts lock or iOS 18 Require Face ID: which should you use?

Require Face ID wins wherever it’s available, because the app itself asks for authentication. Apple introduced the option in iOS 18, so the Shortcuts lock stays useful as the fallback on older versions.

On iOS 18 or later with the option showing, use Require Face ID. On iOS 16.4 to 17, or when the option is missing, the Shortcuts automation is what you’re left with. Guided Access suits handing the phone over for one app, and Screen Time App Limits are for capping use rather than blocking it.

MethodWhat it gatesUnlock with
Shortcuts automationPhone locks when the app opensPasscode, Face ID or Touch ID
Require Face IDThe app asks before openingFace ID, Touch ID or passcode
Screen Time App LimitsApp blocked after its limitScreen Time passcode
Guided AccessOne app, one sessionGuided Access passcode or Face ID

Require Face ID on iOS 18 and later

The app asks for authentication each time it opens, and turning it on is quick.

  1. Touch and hold the app icon until the quick actions menu opens.
  2. Tap Require Face ID (or Touch ID or Passcode).
  3. Tap it again, then authenticate.

Hide and Require Face ID goes one step further. The app moves to the Hidden folder in App Library, which opens only after authentication.

Hiding works only for apps you download separately, not for apps that come with iOS. Don’t Require Face ID turns the lock off again.

Screen Time App Limits

When a limit runs out, the Ask For More Time screen offers one more minute or the Screen Time passcode, according to How-To Geek’s walkthrough. That one screen is the whole lock.

Apple’s guide lets you set a limit for a category of apps or for individual apps. Use a Screen Time passcode that differs from the device passcode, since MacRumors notes the two are separate. The wider Screen Time controls on the iPhone cover the setup.

The weakness is that it limits minutes and doesn’t gate the first open, so the app stays usable until the limit hits.

Guided Access

Guided Access starts with a triple-click of the side button inside the app, and it keeps the phone in that single app. You can disable chosen areas of the screen as well. It ends with the Guided Access passcode, or a double-click and Face ID if you turned that option on.

It suits a phone handed over for one task, and the Guided Access setup takes a few minutes.

TidBITS notes that once a Guided Access passcode exists, the regular passcode no longer ends the session.

It works for hand-overs, one app, one session. It doesn’t work for automatic gating, because nothing starts until you triple-click.

FAQ About the iPhone App Lock Shortcut

How do you remove the app lock shortcut?

Open Shortcuts, tap the Automation tab and tap the app lock automation. Turn its toggle off to pause the lock, or delete the automation to remove it for good.

A disabled automation does not notify you or run automatically.

Does the app lock shortcut work on iPad?

Yes. The same workaround works on an iPad running iPadOS 16.4 or later.

Build the automation on the iPad itself, since personal automations are specific to a device and do not sync to other devices.

Can you lock Photos, Messages or Notes this way?

Yes. Photos and Messages both appear in published walkthroughs, and Notes follows the same steps.

Choose it in the App trigger, then open the app once to test the lock.

Is there a workaround below iOS 16.4?

Yes, but updating is simpler. Gadget Hacks describes a Clock timer workaround that the App automation starts, and the phone locks itself after one second.

Which method suits a child’s iPhone?

Screen Time, not the Shortcuts lock. Apple’s guide covers setting downtime and app limits on a family member’s device, and a child can request an exception once a limit is reached.

The wider set of controls sits in this guide to iPhone parental controls.

Checking the iPhone App Lock Shortcut After an iOS Update

Retest the iPhone app lock shortcut after every iOS update. Apple controls every piece the lock depends on, from the App trigger and the Lock Screen action to the run setting, so an update can change how it behaves.

Start by opening each locked app and watching for the Lock Screen. If it fires on every app, you can skip the settings checks.

If one app slips through, look at the run setting and the on/off toggle. Then open Shortcuts last to test the second lock.

The advice carries a date. As of November 2026, Apple’s Shortcuts User Guide lists App among the triggers that can run without asking.

If Apple drops App from that list, the silent lock ends and a confirmation tap returns, which is the moment to move the locked apps to another method.

Bogdan Sandu

Stay sharp. Ship better code.

Every week: one curated article, one tool worth knowing, one tip you can use tomorrow. No noise, no padding.