Changes

no edit summary
Line 1: Line 1: −
<pre style="background-color: #EEEEEE; color: Black; border-radius: 10px; padding: 10px;">
+
<pre class="header-style">The Mobile Service Status trigger fires when the device's cellular signal connection changes state. This allows you to automate actions based on whether your device has cellular service available or has lost the signal.</pre>
Will fire when the cellular signal is established/ lost.
  −
</pre>
     −
'''Example Usage'''<br/>
+
''' Options '''
   −
<pre style="background-color: #AC2424; color: white; border-radius: 10px; padding: 10px;">
+
* '''Service Available''' - Fires when the cellular signal is established (device regains mobile network connectivity)
Triggers
+
* '''Service Unavailable''' - Fires when the cellular signal is lost (device loses mobile network connectivity)
    +
''' Examples '''
   −
</pre><br>
+
''Example 1: Notify when cellular service is lost''
<pre style="background-color: #1665B0; color: white; border-radius: 10px; padding: 10px;">
  −
Actions
      +
  <pre class="trigger-style">Triggers
   −
</pre><br>
+
Mobile Service Status: Service Unavailable</pre>
<pre style="background-color: green; color: white; border-radius: 10px; padding: 10px;">
+
  <pre class="action-style">Actions
Constrains
      +
Notification: Cellular service has been lost
 +
Enable WiFi</pre>
   −
</pre><br>
+
''Example 2: Log when service is restored''
<pre style="background-color: teal; color: white; border-radius: 10px; padding: 10px;">
  −
Local variables
      +
  <pre class="trigger-style">Triggers
   −
</pre><br>
+
Mobile Service Status: Service Available</pre>
 +
  <pre class="action-style">Actions
 +
 
 +
System Log: Cellular service restored
 +
Disable WiFi</pre>
 +
  <pre class="constraint-style">Constraints
 +
 
 +
WiFi Enabled</pre>
 +
 
 +
''' Notes '''
 +
 
 +
* This trigger monitors the phone service state through a background service (PhoneStateMonitorService)
 +
* The trigger detects changes in cellular connectivity, not signal strength
 +
* This is useful for automating Wi-Fi switching when entering areas with no cellular coverage (such as basements or rural areas)
 +
* The trigger monitors the overall cellular service state, not specific carrier or network type changes
 +
 
 +
''' See Also '''
 +
 
 +
* [[Constraint:_Mobile_Service_Status|Mobile Service Status Constraint]]
 +
* [[Trigger:_Wifi_State_Change|Wifi State Change Trigger]]
 +
* [[Trigger:_Roaming_Started/Stopped|Roaming Started/Stopped Trigger]]