Difference between revisions of "Constraint: Wifi State"

(Altered headings (blue, blank lines). Added "Requirements")
Tags: Mobile web edit Mobile edit
Tags: Mobile web edit Mobile edit
 
Line 25: Line 25:
 
<p style="color:#2465d0">'''Requirements'''</p>
 
<p style="color:#2465d0">'''Requirements'''</p>
 
* Connectivity Helper is installed<br>
 
* Connectivity Helper is installed<br>
* Location permission for MD (must be set to "Allow all the time", not just "Allow only while using the app")<br>
+
* Location permission for MacroDroid (must be set to "Allow all the time", not just "Allow only while using the app")<br>
 
* Location is enabled<br>
 
* Location is enabled<br>
 
* Since Android 8.1 this functionality requires location permission and location services enabled
 
* Since Android 8.1 this functionality requires location permission and location services enabled

Latest revision as of 04:58, 17 March 2026

This constraint allows or prevents a macro/feature from running based on the current Wi-Fi state.


Options

  • Enabled: Constraint passes only when Wi-Fi is on
  • Disabled: Constraint passes only when Wi-Fi is off
  • Connected/Disconnected: Optionally check connection state or SSID


Example

Example 1: Enable mobile data only when Wi-Fi is disconnected

Triggers

Application Launched/Closed - Launched (YouTube)
Actions

Mobile Data On/Off (Enable)
Constraints

Wifi State - Disconnected


Requirements

  • Connectivity Helper is installed
  • Location permission for MacroDroid (must be set to "Allow all the time", not just "Allow only while using the app")
  • Location is enabled
  • Since Android 8.1 this functionality requires location permission and location services enabled


See Also