如何识别 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.
Please any one help me on this.
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以使用
subscriberCellularProviderDidUpdateNotifier
注册通知CTTelephonyNetworkInfo
但是,您只会如果在您的应用程序运行时发生交换,则会收到通知。当您的应用未运行时,您仍然无法检测用户是否将 SIM 卡更改为同一运营商的另一张 SIM 卡。
You are able to sign up for a notification using
subscriberCellularProviderDidUpdateNotifier
inCTTelephonyNetworkInfo
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.
嗨,托尼,您可以使用它来查找 sim 是否已更改。
Hi tony You can use this for finding sim has been changed or not.