Lock iPhone Apps Behind Face ID or Your Passcode - MacRumors
Skip to Content

Lock iPhone Apps Behind Face ID or Your Passcode

by

In the interests of enhanced privacy, some third-party iOS apps include an option to require passcode or Face ID authentication before they can be opened, even though the iPhone is already unlocked. This puts the app's contents behind an additional layer of security, but not all apps offer the same facility.

iphone passcode green
Until recently, Apple did not offer a way to individually lock sensitive apps like Photos, and iPhone users had to resort to Screen Time's App Limits as a workaround. Fortunately however that's no longer the case, because you can now create an additional security barrier for any app on your iPhone using a shortcut action that's included in iOS 16.4 and later.

Apple has added several more actions to the Shortcuts app, and the one that interests us here is Lock Screen. The Lock Screen action essentially allows you to set up a personal automation that automatically locks your iPhone when a specified app is opened.

Of course, this action should pose no access issues for you as the iPhone owner, but it does mean that anyone else trying to open the app first needs to pass facial authentication or enter your passcode even though your iPhone was unlocked when they tapped the app icon.

The following steps guide you through the process of setting up a personal automation that will instantly lock your iPhone when the app of your choosing is opened.

  1. Launch the Shortcuts app, tap the Automation tab at the bottom of the screen.
  2. Tap the + button in the top-right corner, then scroll down the menu of options and choose App.
  3. On the next screen, tap Choose to select an app from the list of apps, then tap Done.
  4. Make sure Is Opened and Run Immediately are selected, then tap Next.
    shortcuts

  5. Start typing "Lock Screen" into the text field and select Lock Screen when it appears in the results below.
  6. You should see your new automation "When [app] is opened, Lock screen" added to the Automations list.
    shortcuts

Your personal automation is now complete and should automatically spring into action the next time you open the chosen app.

Top Rated Comments

klasma Avatar
44 months ago
Hopefully Apple will add this as a simple app toggle in Settings at some point.
Score: 29 Votes (Like | Disagree)
44 months ago
oh waw!!!! so easy and userfriendly.

Ffs.. without a how-to not a single user will ever figure this out.
Score: 29 Votes (Like | Disagree)
klasma Avatar
44 months ago
You’d probably also want to do this for the Shortcuts app itself, to prevent someone from disabling the automation.

Edit: And it turns out you can’t do that, see downthread.
Score: 23 Votes (Like | Disagree)
klasma Avatar
44 months ago

This workaround sounds promising -- but doesn't it just use the same spied passcode that thieves used to unlock the phone in the first place?
The use case here is when you give someone your unlocked phone, e.g. to play a game, that they don’t also get access to your sensitive data. Or when you leave your phone unlocked for a minute somewhere by accident.

This will be fun for law enforcement trying to inspect your phone, by the way.
Score: 18 Votes (Like | Disagree)
44 months ago
This workaround sounds promising -- but doesn't it just use the same spied passcode that thieves used to unlock the phone in the first place?
Score: 16 Votes (Like | Disagree)
44 months ago
Must get my head around shortcuts sometime.....
Score: 15 Votes (Like | Disagree)

Popular Stories

iOS 26 Home Feature

Apple Will Soon Announce an All-New Operating System

Tuesday September 22, 2026 9:19 am PDT by
Apple is developing an all-new operating system that is essentially a mix of tvOS, watchOS, and iOS, according to Bloomberg's Mark Gurman. In his latest Power On newsletter, Gurman reiterated that the operating system will feature a grid of app icons, widgets, and customizable clock faces. The new software platform is intended for Apple's long-rumored smart home hub. With built-in facial...
Apple Event This October

Apple Event This October? These 7 New Products Expected Next Month

Tuesday September 22, 2026 8:40 am PDT by
As usual, September has been a very busy month for Apple, with the company unveiling the iPhone 18 Pro, iPhone Duo, AirPods 5, Apple Watch Series 12, Apple Watch Ultra 4, Beats 360, and more. Nevertheless, Apple reportedly still has many more products to release later this year, including a new iPad mini, Apple TV, HomePod mini, iMac, and more. It seems quite likely that Apple will hold an...
iOS 27 0 1

iOS 27.0.1 is Coming Soon

Wednesday September 23, 2026 1:06 pm PDT by
After releasing iOS 27 last week, Apple is already testing a follow-up iOS 27.0.1 update for iPhones, according to MacRumors logs. iOS 27.0.1 will likely be a minor update with bug fixes and/or security patches. Shortly after Apple launches new iPhone models, some software bugs are usually discovered as the devices get into the hands of millions of customers around the world. This year, so...
Latest Stories
What's Gone in macOS Golden Gate and What's Next in macOS 28
What's Gone in macOS Golden Gate and What's Next in macOS 28
5 hours ago
TestFlight App Gets New iOS 27 Features
TestFlight App Gets New iOS 27 Features
5 hours ago
Google Photos Wardrobe Feature Comes to iOS
Google Photos Wardrobe Feature Comes to iOS
7 hours ago
Apple Music to Host Free Head Trip Festival Livestream
Apple Music to Host Free Head Trip Festival Livestream
8 hours ago
watchOS 27.2 Code Hints at iPhone-Style Screenshot Previews
watchOS 27.2 Code Hints at iPhone-Style Screenshot Previews
10 hours ago
Beats 360 Headphones Now Available in Apple Stores
Beats 360 Headphones Now Available in Apple Stores
11 hours ago
Apple Shares New Video Promoting iOS 27 Parental Controls
Apple Shares New Video Promoting iOS 27 Parental Controls
11 hours ago
Apple Has Announced 12 New Products in the Past Month
Apple Has Announced 12 New Products in the Past Month
11 hours ago
Apple Watch Ultra 2 vs. Ultra 4 Buyer's Guide: Should You Upgrade?
Apple Watch Ultra 2 vs. Ultra 4 Buyer's Guide: Should You Upgrade?
12 hours ago
Here's When Apple TV is Airing Free 'Peanuts' Holiday Specials This Year
Here's When Apple TV is Airing Free 'Peanuts' Holiday Specials This Year
12 hours ago
Square Announces Apple Business Integration
Square Announces Apple Business Integration
13 hours ago
AirPods Pro 3 on Sale for $199 This Week on Amazon
AirPods Pro 3 on Sale for $199 This Week on Amazon
14 hours ago
Qualcomm Announces Renewed Agreement With Apple
Qualcomm Announces Renewed Agreement With Apple
14 hours ago
Apple Confirms iPhone 18 Pro Bug Fix Update is Coming Next Week
Apple Confirms iPhone 18 Pro Bug Fix Update is Coming Next Week
15 hours ago
Full iPhone 4 'Antennagate' Q&A Video Surfaces After 16 Years
Full iPhone 4 'Antennagate' Q&A Video Surfaces After 16 Years
15 hours ago
Meta Did a 'One More Thing' and It's an AI Tamagotchi
Meta Did a 'One More Thing' and It's an AI Tamagotchi
19 hours ago
iPhone Handoff in iOS 27: How It Works, Pricing, and Carrier Support
iPhone Handoff in iOS 27: How It Works, Pricing, and Carrier Support
22 hours ago
ChatGPT in Siri 'Persistently Underperforming,' Says OpenAI
ChatGPT in Siri 'Persistently Underperforming,' Says OpenAI
1 day ago
You Can Now Try Apple's Unreleased Copland OS in Your Browser
You Can Now Try Apple's Unreleased Copland OS in Your Browser
1 day ago
iOS 27.0.1 is Coming Soon
iOS 27.0.1 is Coming Soon
1 day ago
Apple Releases watchOS 27.0.1 With Fix for Restart Bug
Apple Releases watchOS 27.0.1 With Fix for Restart Bug
1 day ago
Disney+ and Hulu Raise Prices Again, Ad-Free Plans Now $21.49
Disney+ and Hulu Raise Prices Again, Ad-Free Plans Now $21.49
1 day ago
Apple Sports App Updated With Even More Soccer Leagues
Apple Sports App Updated With Even More Soccer Leagues
1 day ago
AirTag 2 4-Pack Hits $79.99 on Amazon, Matching Record Low
AirTag 2 4-Pack Hits $79.99 on Amazon, Matching Record Low
1 day ago
Siri AI Coming to HomePod
Siri AI Coming to HomePod
1 day ago
iPhone Air vs. iPhone 18 Pro Buyer's Guide: Which Should You Buy?
iPhone Air vs. iPhone 18 Pro Buyer's Guide: Which Should You Buy?
2 days ago
Apple Podcasts Subscriptions Will Soon Support Video
Apple Podcasts Subscriptions Will Soon Support Video
2 days ago
Apple Watch Ultra 3 Drops to Record Low $599.97 on Amazon [Updated]
Apple Watch Ultra 3 Drops to Record Low $599.97 on Amazon [Updated]
2 days ago
AT&T Responds to iOS 27's New iPhone Handoff Feature
AT&T Responds to iOS 27's New iPhone Handoff Feature
2 days ago
Launch Discounts Arrive for New Mac Mini and Mac Studio, Plus Massive Deal on Samsung's Portable SSD
Launch Discounts Arrive for New Mac Mini and Mac Studio, Plus Massive Deal on Samsung's Portable SSD
2 days ago