Difference between revisions of "Constraint: Location Mode"

 
Line 3: Line 3:
 
''' Options '''
 
''' Options '''
  
* '''High Accuracy/Battery Saving/Device Only''' - Match the current location mode
+
Android 9 and below
 +
 
 +
* Location Service Off
 +
* High Accuracy
 +
* Battery Saving
 +
* Device Only
 +
 
 +
Android 10 and above
 +
 
 +
* Location Service Off
 +
* Location Service On
  
 
''' Example '''
 
''' Example '''
  
''Example 1: Only open Maps when high accuracy mode is enabled''
+
''Example 1: Warn the user when launching Google Maps if location services are off''
 
   <pre class="trigger-style">Triggers
 
   <pre class="trigger-style">Triggers
  
Widget Button</pre>
+
Application Launched: Google Maps</pre>
 
   <pre class="action-style">Actions
 
   <pre class="action-style">Actions
  
Launch Application: Maps</pre>
+
Popup Message: "Warning - Location Services are off"</pre>
 
   <pre class="constraint-style">Constraints
 
   <pre class="constraint-style">Constraints
  
Location Mode - High Accuracy</pre>
+
Location Mode - Location Service off</pre>
  
 
''' See Also '''
 
''' See Also '''
  
 
* [[Constraint: GPS State|GPS State Constraint]]
 
* [[Constraint: GPS State|GPS State Constraint]]

Latest revision as of 11:46, 9 January 2026

This constraint allows or prevents a macro/feature from running based on the current location mode.

Options

Android 9 and below

  • Location Service Off
  • High Accuracy
  • Battery Saving
  • Device Only

Android 10 and above

  • Location Service Off
  • Location Service On

Example

Example 1: Warn the user when launching Google Maps if location services are off

Triggers

Application Launched: Google Maps
Actions

Popup Message: "Warning - Location Services are off"
Constraints

Location Mode - Location Service off

See Also