How to determine when the SIM has changed in the iPhone?

How to find out how a user changes his SIM card from his phone (iPhone). we can find "mobileCountryCode, isoCountryCode, mobileCountryCode and mobileNetworkCode" via software, they are not specific to a particular SIM card, they are operator-specific, is there any way to identify when a user changes his SIM card from his iPhone.

Please help me with this.

Thanks in advance.

+6
iphone core-telephony
source share
2 answers

You can subscribe to a notification using subscriberCellularProviderDidUpdateNotifier in CTTelephonyNetworkInfo

However, you will only be notified if an exchange occurs while your application is running. You still cannot determine whether the user will change the SIM card to another SIM card from the same operator when your application is not running.

+5
source share

Hi Tony You can use this to search for a sim that has been changed or not.

 NSString *currentIMSINo = CTSIMSupportCopyMobileSubscriberIdentity(NULL); 
+1
source share

All Articles