iPhone App Lock: Secure Apps with Shortcuts
In this article
Yes, you can lock apps on your iPhone using the Shortcuts app, providing a layer of privacy without needing to jailbreak. This method creates custom shortcuts that require Face ID, Touch ID, or a passcode to launch specific apps, effectively adding a security barrier.
What You'll Need
- An iPhone running iOS 13 or later.
- The Shortcuts app (pre-installed on all iPhones).
Step-by-Step
- Open the Shortcuts App: Locate and open the Shortcuts app on your iPhone's home screen.
- Create a New Shortcut: Tap the '+' button in the top-right corner to create a new shortcut.
- Add an Action: Tap 'Add Action'.
- Search for 'Open App': In the search bar, type 'Open App' and select the 'Open App' action.
- Choose the App to Lock: A list of installed apps will appear. Tap the app you want to lock.
- Add a Security Prompt: Tap 'Add Action' again. Search for 'Ask for Confirmation' and select it.
- Configure the Confirmation: Tap on 'Confirmation'. Change the text from 'Run Shortcut' to something like 'Unlock [App Name]' (e.g., 'Unlock WhatsApp'). This text will be displayed when you try to launch the app.
- Add Authentication: Tap 'Add Action' again. Search for 'Get Variable'. Select it.
- Set Variable to FaceID/TouchID: Tap on 'Get Variable', then tap the 'Variable' dropdown and select 'Authentication'. This will require Face ID or Touch ID.
- Set Variable to Passcode: If you prefer a passcode instead of biometric authentication, tap 'Add Action' again. Search for 'Ask for Input'. Select it. In the 'Prompt' field, enter a message like 'Enter Passcode'. Change 'Input Type' to 'Number'.
- Add a Condition (for Passcode): Tap 'Add Action' again. Search for 'If'. Select it.
- Set Condition (for Passcode): Tap on 'If'. Tap 'Add Item'. Search for 'Get Variable' and select it. Tap 'Variable' and select 'Passcode'. Tap 'is'. Tap 'Number'. Tap 'is equal to'. Tap 'Add Item'. Search for 'Run Shortcut'. Select it. This will run the 'Open App' shortcut if the passcode is correct.
- Add Else Condition (for Passcode): Tap 'Add Else'. Tap 'Add Action'. Search for 'Show Alert'. Select it. In the 'Title' field, enter 'Incorrect Passcode'.
- Name Your Shortcut: Tap the three dots in the top-right corner of the shortcut editor. Give your shortcut a descriptive name (e.g., 'Locked WhatsApp').
- Choose an Icon and Color: Customize the shortcut's icon and color for easy identification.
- Add to Home Screen (Optional): Tap 'Add to Home Screen' to create an icon on your home screen that launches the shortcut.
Common Mistakes
- Forgetting the 'Ask for Confirmation' Action: This is crucial for adding the security prompt. Without it, the shortcut won't require authentication.
- Incorrect Variable Selection: Double-check that you've selected 'Authentication' for Face ID/Touch ID or 'Passcode' when setting up the condition.
- Complex Shortcut Logic: Keep the shortcut simple. Adding unnecessary actions can make it unreliable.
- Not Testing Thoroughly: Test the shortcut multiple times with different authentication methods (Face ID, Touch ID, passcode) to ensure it works as expected.
Tips
- Use Descriptive Names: Clearly name your shortcuts to easily identify the locked apps.
- Customize Icons: Use unique icons for each shortcut to differentiate them.
- Combine with Focus Modes: You can use Focus Modes to automatically disable certain shortcuts or apps during specific times.
- Consider Multiple Shortcuts: Create separate shortcuts for each app you want to lock for more granular control.
Troubleshooting
- Shortcut Doesn't Trigger Authentication: Ensure you've selected 'Authentication' or correctly configured the passcode condition. Restart your iPhone.
- Shortcut Runs Without Asking for Authentication: Double-check the order of actions. The 'Ask for Confirmation' action must come before the 'Open App' action.
- Shortcut Crashes: Try deleting and recreating the shortcut. Ensure your iPhone has enough storage space.
- Passcode Shortcut Doesn't Work: Verify that the 'If' condition is correctly configured and that the 'Passcode' variable is being set correctly. Check for typos in the passcode input.
Frequently Asked Questions
Can I lock any app on my iPhone using this method?
Yes, this method works for most apps installed on your iPhone. However, some system apps or apps with built-in security features might not be lockable.
Is this method secure?
It adds a layer of security, but it's not foolproof. Someone with access to your iPhone and your Face ID/Touch ID or passcode could still unlock the app.
Does this method drain my battery?
The impact on battery life is minimal, as the shortcut only runs when you attempt to launch the locked app.
Can I use this to lock apps that require a username and password?
No, this method primarily relies on biometric authentication or a passcode. It cannot handle apps that require a separate username and password login.
How do I remove a locked app?
Simply delete the shortcut you created. The app itself remains installed on your iPhone.