The Geofence Trigger activates when you enter or exit a specified area. It uses the standard Android Geofence APIs (Google Play Services) which may provide better reliability and lower battery consumption compared to the standard Location Trigger. The trigger fires once when you transition from one state to another.

Options

  • Zone Name: Select which Geofence zone will activate the trigger. Zones are configured in MacroDroid's Geofences settings.
  • Area Entered/Exited: Choose whether the trigger fires when:
    • Entering the specified area
    • Exiting the specified area
  • Trigger if Previous Location Unknown: When enabled, the trigger will fire even if MacroDroid cannot determine your previous location (such as after a device reboot). By default, the trigger requires a confirmed state transition and won't activate without knowing your previous state.
  • Location Update Rate: Provides guidance to the Play Services library regarding how frequently location should be checked. Options typically range from 30 seconds to several minutes. Note that actual update frequency may vary from the requested interval depending on system conditions and battery optimization.

Examples

Example 1: Silence Phone at Work

Triggers

Geofence (Area Entered) - Work Office
Actions

Volume Change - Ringer Volume: 0
Volume Change - Notification Volume: 0
Constraints

Day of Week: Mon, Tue, Wed, Thu, Fri

Automatically silences the phone when arriving at the office on weekdays.

Example 2: Send Arrival Notification

Triggers

Geofence (Area Entered) - Home
Actions

Send SMS - To: [contact] - Message: I've arrived home

Sends an SMS notification when arriving at home.

Notes

  • Requires location permissions (ACCESS_FINE_LOCATION, ACCESS_COARSE_LOCATION).
  • Location services must be enabled on the device.
  • Uses Google Play Services Geofence APIs, which may provide better battery efficiency than the standard Location Trigger.
  • Geofence zones must be configured separately in MacroDroid's Geofences settings before they can be selected.
  • The trigger provides context information including geofence name, coordinates, and a Google Maps link that can be used with magic text.
  • On Android 10 and above, background location permission may be required for the geofence to work reliably.

Magic Text

When this trigger fires, the following magic text values are available:

  • Geofence name
  • Latitude/Longitude coordinates
  • Google Maps location URL

See Also