Changes

no edit summary
Line 1: Line 1:  
<pre class="header-style">
 
<pre class="header-style">
This trigger will fire when the data connectivity state changes.
+
This trigger will fire when the data connectivity state changes. The device is considered to be connected if it has either a WiFi or mobile data connection.
 +
</pre>
 +
 
 +
''' Options '''
 +
 
 +
* '''Data Available''' - The trigger fires when data connectivity becomes available (either WiFi or mobile data connects).
 +
 
 +
* '''No Connection''' - The trigger fires when data connectivity is lost (neither WiFi nor mobile data is connected).
 +
 
 +
''' Examples '''
 +
 
 +
Example 1: Show notification when connection is lost
 +
 
 +
  <pre class="trigger-style">Triggers
 +
 
 +
Data Connectivity Change [No Connection]</pre>
 +
  <pre class="action-style">Actions
 +
 
 +
Notification: Internet connection lost</pre>
 +
 
 +
Example 2: Sync data when connection becomes available
   −
The device is considered to be connected if it has either a Wi-Fi or mobile data connection. Please note that the state does not necessarily indicate internet connectivity as you could for example be connected to a local wifi network that has no external connection.
+
  <pre class="trigger-style">Triggers
</pre>
+
 
 +
Data Connectivity Change [Data Available]</pre>
 +
  <pre class="action-style">Actions
 +
 
 +
Run Macro: Sync My Data</pre>
 +
  <pre class="constraint-style">Constraints
 +
 
 +
WiFi Connected</pre>
 +
 
 +
''' Notes '''
 +
 
 +
* This trigger monitors the ConnectivityManager for network changes.
 +
* The trigger considers the device connected if either WiFi OR mobile data is active.
 +
* This is different from the WiFi trigger which only monitors WiFi state.
 +
* For more granular control, consider using separate WiFi and Mobile Data triggers.
 +
 
 +
''' See Also '''
 +
 
 +
* [[Trigger:_Wifi_State_Change|WiFi State Change Trigger]]
 +
* [[Trigger:_Mobile_Service_Status|Mobile Service Status Trigger]]
 +
* [[Constraint:_Mobile_Data_On/Off|Mobile Data On/Off Constraint]]