Reputation: 12329
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.
Upvotes: 2
Views: 11848
Reputation: 52612
I can’t see why you need a SIM card change specifically. This very much sounds like an XY-problem. (I want to do X. I think I can do X by doing Y. How do I do Y? Do you really want to know that I switched phone companies? Or that I replaced a SIM that stopped working after five years? Or that I upgraded my phone? ) Tell us what you want to use this for.
You can request a UDID that is specific to the combination of (application, device). This preserves the user’s privacy and is the right thing to do to recognise a user in 99% of cases.
You also need to decide what you want to happen if the user buys a new phone. They will do a backup on the old and restore on the new phone. You can put things into the keychain and decide whether they will be transferred to a new phone, so I’m still the same person. Most apps do that, except banking apps.
Upvotes: 0
Reputation: 937
You should sign up for a notification using subscriberCellularProviderDidUpdateNotifier in
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!!
Upvotes: 0