Location Triggers
Location Triggers is part of Autocuts Suite, a collection of shortcuts that greatly enhance the automation abilities on iOS 13. It works with Autocuts to automatically run shortcuts in the background based on your location while you use your iOS device — no need to tap on a button in a notification!
Why Location Triggers
iOS 13.1 brought about personal automations to Shortcuts, allowing users to create shortcuts that can run at certain times and locations. Unfortunately, these triggers require the user to tap on a confirmation button in order for shortcuts to run. Location Triggers was developed to remove this restriction until Apple decides to make the confirmation an optional requirement in iOS.
Download Location Triggers
You can get Location Triggers as part of Autocuts Suite or download it individually from RoutineHub:
Autocuts Suite contains the following shortcuts:
- Autocuts
- Autocuts Admin: Create, manage, and view your Autocuts.
- LimitKit: Event logging and rate limiting so that Location Triggers is not constantly pinging your current location.
NOTE: In order to use Location Triggers in an automatic fashion, you must install Autocuts and Autocuts Admin.
What is Autocuts and What are Autocuts?
Autocuts is a background shortcut manager that works on top of Open App personal automation feature of Shortcuts in iOS 13. Choosing your most commonly used applications to launch Autocuts in the background ensures that your automated shortcuts are constantly working behind the scenes to do things like:
- Set Do Not Disturb for specific calendar events.
- Turn on Low Power Mode when your battery falls below a certain percentage.
- Send text messages, emails, or web requests at certain times of the day or when you arrive or leave locations.
Interface
Here is a brief overview of Location Triggers’ interface. There are three primary screens:
Home
This is the screen that you see when you first open the shortcut.
- New Location Trigger: Create a new location trigger.
- View Location Triggers: Tap to go to the list view.
- Run: Evaluate your location triggers and run any shortcuts whose location triggers match your current location.
- About: Includes the current version and build number.
- Help: Opens up to the document you are reading now.
- Settings: Adjust the settings of Location Triggers.
List
Tapping on the View Location Triggers menu item retrieve any location triggers that you have saved.
- List of location triggers
- Filter: You can add tags to your location triggers for easy search later on.
- New Location Trigger
- Run: Evaluate your location triggers. Running it from the Home screen will always work, even if you have turned on LimitKit support.
- Bulk Edit and Bulk Edit All: Enable, disable, or delete multiple location triggers at once.
Note: Location triggers are stored in
iCloud Drive/Shortcuts/Location Triggers
Location Trigger Detail
This view is displaying when you tap on a location triggers. Each location trigger can modify the following things:
- Location Trigger Toggle: The on/off switch for this location trigger.
- Name: The name of a location trigger.
- Location: The location to be monitored.
- Trigger Radius: The distance in miles or kilometers from the center of the location. If you fall within the radius, the shortcut specified in the location trigger will run.
- Shortcut: The shortcut that will run when you arrive or leave a location.
- Shortcut Input: The text input to send to the shortcut.
- Active Time: Restrict this location trigger between a start and finish time during the day.
- LimitKit Run Interval: When LimitKit support is enabled, you can set how long a location trigger must wait to be re-evaluated after a successful run. By default, location triggers are evaluated every time Location Triggers runs. Setting a run interval can save time if you are evaluating many location triggers or if you only need to run a shortcut once a day.
- On Success: What happens after a successful evaluation. Options include:
- Nothing: Location Triggers will wait until you leave (for arrival triggers) or arrive (for leaving triggers) before it can re-evaluate the trigger.
- Disable: The location trigger will be disabled after running the shortcut. You will have to manually re-enable it for it to work again.
- Reset: Removes the previous location check, allowing the location trigger to run again at the next evaluation period. This is useful when debugging and troubleshooting an arrival location trigger since the shortcut will fire every time you are within the trigger radius.
- Delete: Deletes the location trigger after running its shortcut. This operation cannot be undone.
- Tags: Add tags to your location triggers so you can filter them from the List screen.
Creating a Location Trigger
There are a number of ways to create a location trigger:
- Use the Location Trigger Assistant.
- Use the New Location Trigger From Input shortcut from the iOS Share Sheet to identify locations in text, web pages, contacts, maps, and more.
Location Trigger Assistant
In this example, we’re going to create a location trigger centered around Apple’s new campus.
- Tap Location Triggers from the Shortcuts Home screen.
- Tap New Location Trigger.
- Tap When I Arrive to create an arrival trigger.
- Enter the address to center the trigger. Here we are choosing Apple Park, located at One Apple Park Way in Cupertino, CA.
- Enter the trigger radius. For this example, we’ll choose a very generous 100 kilometer radius around Apple Park.
- Choose the shortcut that will run you are within 100 kilometers of Apple Park.
- Select any input to send to the shortcut. In this case, Auto Notification takes text input.
- Enter the text,
"I am within 100 kilometers of Apple Park!"
that will be sent to the Auto Notification shortcut. - Choose when this location trigger should be active.
- If you have LimitKit support enabled, an option will appear to set a custom run cadence for the location trigger.
- Select what should happen after the location trigger successfully fires.
- Name your location trigger.
- Finally, switch to another application and watch your shortcut run successfully in the background based on your location. No tapping of a confirmation button required!
Share Sheet
Use the New Location Trigger From Input shortcut from the iOS Share Sheet to import new locations as location triggers. The shortcut can extract locations from contacts, text, Safari Web Pages, and Maps links.
Adding Location Triggers to Autocuts
To realize the full potential of Location Triggers, it must be added as an Autocut using Autocuts Admin. Follow these steps to accomplish this:
- Open Autocuts Admin from the Shortcuts Home screen.
- Tap New Autocut.
- Choose Location Triggers from the list of shortcuts.
- Tap No Input.
- Tap Run in Background.
- Tap OK since we want Location Triggers to start running immediately.
- Tap Never Expire.
- If LimitKit is enabled, you can adjust the run cadence for Location Triggers here.
- Tap Nothing.
- Tap This Device.
- Enter a descriptive name for your Autocut and tap OK.
- Tap the the iCloud (Your Device Name) destination service.
LimitKit
LimitKit is an event logging system and rating limiting tool for shortcuts. Location Triggers takes advantage of LimitKit to control how often your location triggers can run their shortcuts.
Location Triggers works with LimitKit and allows you to run the shortcut in a location trigger at intervals of seconds, minutes, hours, days, weeks, months, or even years. For instance, you can create a daily location trigger that marks your location in the world once a day. This is useful if you travel frequently and want to keep track of where you’ve wake up on a daily basis.
LimitKit support is enabled in the Settings page of Location Triggers.
Advanced
Location Wildcard
When entering the location for a location trigger, you can specify *
to represent your current location. This will cause the trigger to be successfully matched as long as you move outside of the trigger radius that you specify. This allows for intriguing shortcut possibilities such as calculating how often you leave your home area or logging where you wake up each day.
Order of Precedence
When evaluating a location trigger, these checks are made in the following order:
- Autocuts - Scheduled Date for Location Triggers
- Autocuts - Expiration for Location Triggers
- Autocuts - LimitKit for Location Triggers
- Active Status
- Time Range
- LimitKit
- Location Validity
- Arrive or Leave
- Location Wildcard
- Distance from Current Location and Trigger Location
Keep this in mind as you develop location triggers with Autocuts Suites.
API
You can send a Location object to Location Triggers in order to programatically open the Location Trigger Assitant and start creating a new location trigger.
Localization
Today, Auto DND is localized for the English language, but it’s ready to be localized in any supported language by iOS. Please visit Auto DND’s GitHub page and submit a pull request with a new localization file.
Frequently Asked Questions
The Shortcuts notification that it is running an automation is very distracting. Is there any way to get rid of it?
Yes, it is annoying. Unfortunately, there’s no way to disable the notification, as it is controlled by iOS. File feedback with Apple using their Feedback Assistant system.
What’s the difference between Get Current Location and Get Current Weather?
Get Current Location is slower but more accurate. Get Current Weather is faster, but potentially less accurate. Get Current Location will also have a more negative impact on battery life, as it forces your iOS device to power up the GPS radios to pinpoint your location.