如何识别iPhone中的SIM卡更改时间? [英] How to identify when SIM changed in iPhone?

查看:171
本文介绍了如何识别iPhone中的SIM卡更改时间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何查找用户是否从手机(iPhone)更改了SIM卡。我们可以通过编程方式找到mobileCountryCode,isoCountryCode,mobileCountryCode和mobileNetworkCode这些并非特定于特定的SIM,这些是特定于运营商的,有什么方法可以识别用户何时从他的iPhone更换SIM卡。

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.

请任何人帮助我。

提前致谢。

推荐答案

您可以在
subscriberCellularProviderDidUpdateNotifier 注册通知.apple.com / library / ios / #documentation/ NetworkingInternet / Reference / CTTelephonyNetworkInfo / Reference / Reference.htmlrel =nofollow> CTTelephonyNetworkInfo

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

但是,只有在应用程序运行时发生交换时,才会通知您。当您的应用未运行时,您仍然无法检测用户是否将SIM卡从同一位运营商更改为另一张SIM卡。

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.

这篇关于如何识别iPhone中的SIM卡更改时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆