How to Put a Password on Apps on iPhone Using Shortcuts
In this article
You can put a password on apps on iPhone using Shortcuts by creating an automation that requires a password before opening a chosen app. This doesn’t lock the app itself; it adds a password prompt each time the app is launched. You’ll need the Shortcuts app (preinstalled on iOS 15 and later) and a passcode or Face ID enabled on your iPhone. The method works for most apps, but some system apps and apps with their own security may not be selectable.
What You'll Need
- An iPhone running iOS 15 or later (Shortcuts automation features vary slightly by version).
- The Shortcuts app, available from the App Store if not already installed.
- A device passcode set up (Settings > Face ID & Passcode or Touch ID & Passcode).
- The app you want to protect must appear in the list of apps you can automate. Some built-in apps like Settings or Phone may not be selectable.
Step-by-Step
- Open the Shortcuts app on your iPhone.
- Tap the Automation tab at the bottom of the screen.
- Tap the + button in the top right corner to create a new automation. If you don’t see a +, tap Create Personal Automation.
- Scroll down and select App from the list of triggers.
- Tap Choose next to App, then search for and select the app you want to password-protect. You can choose multiple apps if you want the same password prompt for all of them.
- Make sure Is Opened is checked (not Is Closed). Tap Next.
- Tap Add Action.
- In the search field, type Ask for Input and select it. This action will prompt for text.
- Tap the placeholder that says Text (or Input) and change the input type to Number if you want a numeric password, or leave as Text for an alphanumeric password. You can also set a default answer if you like.
- Tap the + button below the Ask for Input action to add another action.
- Search for If and select the If action. This creates a conditional block.
- In the If action, tap the first input field (it may say Input) and select Provided Input from the Ask for Input step. Set the condition to is and type your desired password in the text field.
- Inside the If block (between If and Otherwise), add an action to open the app. Search for Open App and select it, then choose the same app you selected in the trigger.
- Below Otherwise, add an action to stop the shortcut. Search for Stop This Shortcut and select it. Optionally, you can add a Show Alert action before the stop to display a message like “Wrong password.”
- Tap Next at the top right.
- Toggle off Ask Before Running if you want the automation to run without confirmation each time. Confirm by tapping Don’t Ask.
- Tap Done to save the automation.
Now, when you open the selected app, the automation will run: it asks for a password, checks it, and either opens the app (if correct) or stops the shortcut (if incorrect). Note that the app may still open briefly before the automation triggers; this is normal behavior because the automation runs after the app launches. For better security, consider using a third-party app locker that can block the app before it opens.
Common Mistakes
- Selecting the wrong trigger: Make sure you choose “App” and set it to “Is Opened,” not “Is Closed.”
- Forgetting to add the Open App action: Without it, the app won’t open even with the correct password.
- Placing actions outside the If block: The Open App action must be inside the If block (between If and Otherwise). The Stop action should be in the Otherwise section.
- Using a weak password: Since the password is stored in the shortcut, anyone with access to your phone can view it. Use a unique code and consider enabling “Ask Before Running” to add a confirmation step.
- Assuming it works for all apps: Some apps (like Settings, Phone, or Messages) may not be selectable in the App trigger. Also, apps that require Face ID or have their own passcode may not be fully protected.
Tips
- Use a numeric password for speed, but avoid obvious codes like 1234.
- You can create multiple automations for different apps with different passwords.
- To temporarily disable the password prompt, go to the Automation tab, tap the automation, and toggle Enable This Automation off.
- If you want a visual deterrent, add a Show Alert action with a message like “Enter password to continue” before the Ask for Input action.
- Test the automation immediately after setting it up to ensure it behaves as expected.
Troubleshooting
If the automation doesn’t prompt for a password, check that the automation is enabled and that “Ask Before Running” is turned off (or confirm the prompt when it appears). If the app opens without asking, verify that the trigger is set to “Is Opened” and that the app is correctly selected. If the password is not accepted, double-check the password in the If action—it’s case-sensitive. If the app closes immediately after entering the correct password, ensure the Open App action is inside the If block and that the Stop This Shortcut action is only in the Otherwise section. If you accidentally lock yourself out, you can edit or delete the automation in the Shortcuts app. Note that deleting the automation removes the password prompt entirely.
Frequently Asked Questions
Does this method actually lock the app?
No, it adds a password prompt after the app launches. The app may appear briefly before the prompt. For a true lock, consider a third-party app locker from the App Store.
Can I use Face ID instead of a password?
Shortcuts doesn’t support Face ID for this purpose. You can only use text or numeric input. However, you can set a short password and rely on your device’s Face ID for unlocking the phone itself.
Will this work on iOS 14 or earlier?
The Automation feature for apps was introduced in iOS 15. On earlier versions, you can use the Shortcuts app but app-based automations may not be available. Check your iOS version in Settings > General > About.
Can I password-protect multiple apps at once?
Yes, when selecting the app in the trigger, you can choose multiple apps. The same password prompt will appear for each.
What happens if I forget the password?
You can edit the automation in the Shortcuts app and change the password. There’s no recovery; you’ll need to modify or delete the automation.
Is the password stored securely?
The password is stored in the shortcut in plain text. Anyone with access to your unlocked phone can view it in the Shortcuts app. Use a unique code and consider enabling “Ask Before Running” for added security.