2

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.

Community
  • 1
  • 1
Ravi_Parmar
  • 12,319
  • 3
  • 25
  • 36
  • Have you taken a look at Core Telephony? Something like "carrierToken" might be what you need. – Pochi Sep 30 '14 at 06:23
  • @Ravi_Parmar Did you found solution for your problem? I have the same problem how to detect SIM swap when an app is not running. – Ramis Oct 24 '17 at 10:10

1 Answers1

0

You should sign up for a notification using subscriberCellularProviderDidUpdateNotifier in

http://developer.apple.com/library/ios/#documentation/NetworkingInternet/Reference/CTTelephonyNetworkInfo/Reference/Reference.html

you can detect sim changing only while app is running.

For sim change detection while app is not running refer the below link

Detect SIM change OR find IMSI of the SIM using official iOS SDK?

Hope it helps!!

Community
  • 1
  • 1
Tanvi Jain
  • 917
  • 2
  • 7
  • 19
  • 1
    If he also wants to detect the change **between** launches of his app (not while it's running), perhaps he can read `CTTelephonyNetworkInfo`'s property `subscriberCellularProvider`, serialize it (save to disk) some how and compare the values between launches of the app. – Nicolas Miari Sep 30 '14 at 06:49
  • but the thing is what if user changes the sim while app is not running? – Ravi_Parmar Sep 30 '14 at 06:49