开发者

How to identify when SIM changed in iPhone?

开发者 https://www.devze.com 2023-02-15 22:41 出处:网络
How to find if a user changes his SIM card from his phone(iPhone). we can find \"mobileCountryCode,isoCountryCode,mobileCountryCode and mobileNetworkCode\" through programatically these are not specif

How to find if a user changes his SIM card from his phone(iPhone). we can find "mobileCountryCode,isoCountryCode,mobileCountryCode and mobileNetworkCode" through programatically these are not specific to particular SIM, these are specific to operator, is there any way to identify when user changes his SIM card from his iPhone.

Please any one help me on this.

Thanks in advan开发者_如何转开发ce.


You are able to sign up for a notification using subscriberCellularProviderDidUpdateNotifier in CTTelephonyNetworkInfo

However you will only be notified if the swap occurs while your app is running. You will still be unable to detect if the user changes the SIM to another SIM from the same operator when your app is not running.


Hi tony You can use this for finding sim has been changed or not.

NSString *currentIMSINo = CTSIMSupportCopyMobileSubscriberIdentity(NULL);
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号