简体   繁体   English

如何检测 iOS 中的 sim 更改

[英]How to detect sim change in iOS

I'm implementing the currency transfer mobile app and i have to fetch the information about something that is unique on particular iOS device.我正在实施货币转账移动应用程序,我必须获取有关特定 iOS 设备上唯一信息的信息。 I HAVE TO DETECT sim change.我必须检测 sim 变化。

I went through many links how to identify ios device uniquely我经历了很多链接如何唯一地识别 ios 设备

and

Is it possible to determine if the SIM/Phone number has changed? 是否可以确定 SIM/电话号码是否已更改?

but they are of no use, plus it cant be detected if user removes sim when app is not running.但它们没有用,而且如果用户在应用程序未运行时删除 SIM 卡,则无法检测到。

you should sign up for a notification using subscriberCellularProviderDidUpdateNotifier in http://developer.apple.com/library/ios/#documentation/NetworkingInternet/Reference/CTTelephonyNetworkInfo/Reference/Reference.html 您应该使用http://developer.apple.com/library/ios/#documentation/NetworkingInternet/Reference/CTTelephonyNetworkInfo/Reference/Reference.html中的 SubscriberCellularProviderDidUpdateNotifier签署通知

also this post contains answer Detect SIM change OR find IMSI of the SIM using official iOS SDK? 这篇文章还包含答案检测SIM卡更改或使用官方iOS SDK查找SIM卡的IMSI吗?

Detect SIM card replacement 检测SIM卡更换

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? 编辑:请也通过此链接并看一下CoreTelephony FrameWork 是否可以确定SIM /电话号码是否已更改?

You should sign up for a notification using subscriberCellularProviderDidUpdateNotifier in 您应该在以下位置使用SubscriberCellularProviderDidUpdateNotifier订阅通知

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

you can detect sim changing only while app is running. 您只能在应用运行时检测到SIM卡更改。

For sim change detection while app is not running refer the below link 对于未运行应用程序时的SIM卡更改检测,请参考以下链接

Detect SIM change OR find IMSI of the SIM using official iOS SDK? 使用正式的iOS SDK检测SIM卡更改或查找SIM卡的IMSI?

Hope it helps!! 希望能帮助到你!!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM