-->

检测SIM变化或使用官方的iOS SDK找到SIM的IMSI?(Detect SIM change

2019-07-30 18:48发布

我开发一个移动运营商的应用程序。 首先,我想找到任何东西(IMSI,ICCID,IMEI,MSISDN),因此,如果SIM卡有关,我的移动运营商我能察觉。 但我想苹果不允许。

现在,作为一种变通方法,我会询问用户与我的应用程序注册自己的电话号码。 不过话又说回来了不好的事情会如果用户更改SIM发生。

有没有办法对我来说,使用官方的iOS SDK检测SIM变化?

Answer 1:

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

but, you're only be notified if the swap occurs while your app is running. you're still be unable to detect if the user changes the SIM to another SIM from the same operator when your app is not running.



Answer 2:

你可以只在越狱设备的访问。

查找文件的路径/private/var/root/Library/Lockdown/data_ark.plist

关键是InternationalMobileSubscriberIdenti



文章来源: Detect SIM change OR find IMSI of the SIM using official iOS SDK?