Difference between revisions of "Trigger: Sim Card Change"

(Created page with "This trigger is triggered when a SIM card is inserted/removed. For example: SIM removed > play sound (alert).")
 
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
This trigger is triggered when a SIM card is inserted/removed.
+
<pre class="header-style">This trigger will fire when a SIM card is inserted or removed. It monitors the SIM card state to detect physical changes to the device's cellular connectivity.</pre>
  
For example:
+
''' Options '''
SIM removed > play sound (alert).
+
 
 +
* '''SIM Inserted''' - The trigger fires when a SIM card is inserted into the device
 +
* '''SIM Removed''' - The trigger fires when a SIM card is removed from the device
 +
 
 +
''' Examples '''
 +
 
 +
'''Example 1: Anti-theft notification'''
 +
 
 +
Get notified if someone removes your SIM card:
 +
 
 +
  <pre class="trigger-style">Triggers
 +
 
 +
SIM Card Change: SIM Removed</pre>
 +
  <pre class="action-style">Actions
 +
 
 +
WiFi: Enable
 +
Send Email: "SIM card removed from device" to your email</pre>
 +
 
 +
'''Example 2: Travel SIM setup'''
 +
 
 +
Automatically configure settings when inserting a travel SIM:
 +
 
 +
  <pre class="trigger-style">Triggers
 +
 
 +
SIM Card Change: SIM Inserted</pre>
 +
  <pre class="action-style">Actions
 +
 
 +
Wait: 30 seconds (for SIM to initialize)
 +
Mobile Data: Enable
 +
Data Roaming: Enable
 +
Display Notification: "Travel SIM detected - roaming enabled"</pre>
 +
 
 +
''' Notes '''
 +
 
 +
* The trigger listens for the Android SIM_STATE_CHANGED intent
 +
* There may be a brief delay between physical SIM insertion/removal and the trigger firing while Android processes the change
 +
* On dual-SIM devices, the trigger will fire for either SIM slot
 +
 
 +
''' See Also '''
 +
 
 +
* [[Trigger:_Roaming_Started/Stopped|Roaming Started/Stopped]]
 +
* [[Trigger:_Airplane_mode_changed|Airplane Mode Changed Trigger]]

Latest revision as of 19:42, 7 January 2026

This trigger will fire when a SIM card is inserted or removed. It monitors the SIM card state to detect physical changes to the device's cellular connectivity.

Options

  • SIM Inserted - The trigger fires when a SIM card is inserted into the device
  • SIM Removed - The trigger fires when a SIM card is removed from the device

Examples

Example 1: Anti-theft notification

Get notified if someone removes your SIM card:

Triggers

SIM Card Change: SIM Removed
Actions

WiFi: Enable
Send Email: "SIM card removed from device" to your email

Example 2: Travel SIM setup

Automatically configure settings when inserting a travel SIM:

Triggers

SIM Card Change: SIM Inserted
Actions

Wait: 30 seconds (for SIM to initialize)
Mobile Data: Enable
Data Roaming: Enable
Display Notification: "Travel SIM detected - roaming enabled"

Notes

  • The trigger listens for the Android SIM_STATE_CHANGED intent
  • There may be a brief delay between physical SIM insertion/removal and the trigger firing while Android processes the change
  • On dual-SIM devices, the trigger will fire for either SIM slot

See Also