Sim Card unique Identification

I would like to enable the app to persist a stable SIM identifier and compare it across app sessions so it can reliably detect when the user has changed SIM cards. When a SIM change is detected—especially while the device is on Wi-Fi—the app should trigger SIM-change handling (for example: refresh auth/session, reload account-specific data, and update feature availability).

The implementation must be robust for:

Dual-SIM and eSIM devices Temporary network unavailability or delayed carrier info

Current challenge: On Wi-Fi, the existing hash can distinguish a different operator but cannot reliably detect a SIM-card-level change. We need a way to uniquely identify the SIM card itself, not just the operator.

Thank you for the interesting post.

Unfortunately, without knowing anything about your app, it seems like a privacy issue as would be a problem if third-party apps could access unique SIM identifiers (such as the ICCID, IMSI, IMEI, or phone number) due to privacy and security policies.

You can ask and check for wifi or cellular access and make sure the user has internet access. Because you cannot rely on local APIs, your app must handle states where the SIM cannot be verified (e.g., Airplane mode with Wi-Fi on).

Hope this helps answer your question?

Albert
  Worldwide Developer Relations.

Sim Card unique Identification
 
 
Q