If your iPhone is ever stolen, Apple’s Find My network remains the most important tool for tracking and protecting the device. But there is also a lesser-known Shortcuts automation you can set up as an additional precaution.
The idea is simple: you can configure a stolen iPhone to send its location when charging, while also attempting to restore connectivity, take a photo using the front-facing camera, save that photo and send the information to an email address you control.
Everything is built using Apple’s Shortcuts app, so there is no third-party anti-theft app to install.
Apple officially supports using a charger connection as a Shortcuts automation trigger, including automations that can run automatically without requiring confirmation.
Step 1: Create a charger automation


Open the Shortcuts app on your iPhone and select the Automation tab at the bottom.
If you already have automations, tap the + button in the upper-right corner. Otherwise, choose the option to create a new personal automation.
Find Charger in the list of triggers and select it. Choose Is Connected. This means the automation will start whenever the iPhone begins charging, whether through a cable or a supported wireless charger.
This charger trigger is what makes it possible for a stolen iPhone to send location information when charging, provided the required Shortcuts actions and permissions are available.
Set the automation to run automatically rather than asking for confirmation each time. Depending on your version of iOS, this may appear as Run Immediately or as an option to disable Ask Before Running.
You can also enable automation notifications while initially setting everything up. They are useful when testing whether the shortcut is actually being triggered.
Next, create a new blank shortcut. This is where the individual actions will be added.
Step 2: Turn Airplane Mode off

The first priority is making sure the iPhone has a network connection.
Add an action for Set Airplane Mode and configure it to turn Airplane Mode Off.
The thinking behind this step is that someone with possession of the phone may have enabled Airplane Mode to prevent it from communicating with the outside world.
By placing this action at the beginning of the shortcut, the iPhone attempts to restore its wireless connections as soon as the charger automation runs.
Step 3: Turn cellular data on
Next, search for the cellular data action in Shortcuts.
Configure it so Cellular Data is switched On.
This gives the remaining actions a better chance of transmitting information when Wi-Fi is unavailable.
The order matters. If you want a stolen iPhone to send its location while charging, connectivity should be restored before the shortcut tries to obtain or transmit location data.
Step 4: Get the iPhone’s current location

Now add Get Current Location.
If Shortcuts presents an accuracy option, select the most precise setting available.
The location returned by this action can then be passed to another action later in the shortcut, allowing you to include the phone’s location in the message sent to yourself.
Make sure Shortcuts has permission to access your location. It is worth running the shortcut manually once during setup so iOS can display any permission requests before you actually need the automation.
Step 5: Add the front-camera action

The next action is Take Photo.
Set the camera to Front and disable Show Camera Preview if that option is available.
With the preview disabled, Shortcuts does not need to open the normal camera interface before attempting to capture the image.
The original setup proposes using this as a way of capturing an image of whoever is holding the phone when it is connected to power.
There is an important limitation here, however: do not assume the camera action will work while the iPhone is locked.
Shortcuts automations can run automatically, but individual actions can have their own requirements. Users testing similar anti-theft shortcuts have also reported that camera actions may fail when the device is locked, even when the charger automation itself successfully starts.
For that reason, the location action should come before the camera action. If the camera cannot run, you still want the shortcut to have attempted to obtain the device’s location first.
Step 6: Save the photo

After the camera action, add Save to Photo Album.
Set it to save the photo produced by the previous action to Recents or another album of your choice.
Saving a local copy gives you another place to recover the image if the shortcut runs successfully but the subsequent sending action fails.
Step 7: Send the information to yourself
Finally, add a Send Email action.
Enter an email address that you can access from another device.
Use a recognizable subject line such as:
iPhone security alert — charger connected
Include the current location generated earlier in the shortcut and, where supported, attach the photo captured by the front camera.
This final step is what allows the stolen iPhone to send its location when connected and charging, giving you another potential source of information if the device goes missing.
Open the additional options for the email action and disable Show Edit Draft if that option appears. Otherwise, Shortcuts may stop at a compose window instead of attempting to send the message automatically.
You should test this portion carefully as well. Actions involving Mail, the camera or other privacy-sensitive features can behave differently depending on whether the iPhone is locked and which permissions have previously been granted.
The final shortcut should look something like this
Once finished, the actions should run in roughly this order:
- Turn Airplane Mode off
- Turn cellular data on
- Get current location
- Take a photo with the front camera
- Save the photo
- Send the location and photo to your email
Shortcuts processes actions sequentially, from the top of the shortcut to the bottom, which is why putting the location request before the less-reliable camera action is useful.
Test the automation before relying on it
This is the part that should not be skipped.
Lock your iPhone, leave it untouched long enough for Face ID not to authenticate you accidentally, and connect it to a charger.
Then check:
- Did the automation trigger?
- Was Airplane Mode turned off?
- Did cellular connectivity become available?
- Was a location obtained?
- Did the camera action succeed?
- Was the photo saved?
- Did the email arrive?
Testing under real-world conditions is especially important if your goal is to have a stolen iPhone send its location when charging, because some actions may behave differently while the device is locked.
Test it more than once and test it while the device is locked.
An automation that works perfectly while you are actively using the phone may behave differently from one triggered while the phone is sitting locked on a table.
Don’t use this instead of Find My
This Shortcut should be treated as an additional security measure, not as Apple’s primary stolen-device protection system.
Make sure Find My iPhone is enabled before your phone goes missing. If an iPhone is stolen, Apple recommends using Find My or iCloud.com/find to locate the device and immediately mark it as lost. Lost Mode locks the device and helps protect the information stored on it.
It is also worth enabling Stolen Device Protection under Settings → Face ID & Passcode → Stolen Device Protection. The feature adds biometric authentication and security delays to sensitive account and device changes, making it considerably harder for someone who has both your iPhone and your passcode to take control of your accounts.
If your device is stolen and appears at an unfamiliar location, Apple advises against attempting to recover it yourself. Contact local law enforcement instead.
A clever backup, but not a guarantee
The charger-triggered Shortcut is an interesting extra layer of protection because it uses tools already built into iOS. Once configured, simply connecting the iPhone to power can trigger a sequence designed to restore connectivity and collect potentially useful information.
But it should not be presented as a guaranteed way to secretly photograph an iPhone thief. iOS privacy and lock-screen restrictions can prevent individual Shortcut actions — particularly camera-related actions — from working under some conditions.
Think of it as a backup that may give you another useful signal if your phone disappears, while Find My, Lost Mode and Stolen Device Protection remain the security features you should rely on first.
