How to detect sim change in iOS

Ravi_Parmar picture Ravi_Parmar · Sep 30, 2014 · Viewed 9.2k times · Source

I'm implementing the currency transfer mobile app and i have to fetch the information about something that is unique on particular iOS device. I HAVE TO DETECT sim change.

I went through many linkshow to identify ios device uniquely

and

Is it possible to determine if the SIM/Phone number has changed?

but they are of no use, plus it cant be detected if user removes sim when app is not running.

Answer

Rohit picture Rohit · Sep 30, 2014

you should sign up for a notification using subscriberCellularProviderDidUpdateNotifier in http://developer.apple.com/library/ios/#documentation/NetworkingInternet/Reference/CTTelephonyNetworkInfo/Reference/Reference.html

also this post contains answer Detect SIM change OR find IMSI of the SIM using official iOS SDK?

Detect SIM card replacement

EDIT : pls go through this link also and take a look at CoreTelephony FrameWork Is it possible to determine if the SIM/Phone number has changed?