本文介绍了检测SIM更改或使用官方iOS SDK查找SIM的IMSI?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为移动运营商开发应用。首先,我想找到任何东西(IMSI,ICCID,IMEI,MSISDN),以便我可以检测SIM是否与我的移动运营商相关。但我猜Apple不允许这样做。

I am developing an app for a mobile carrier. First I wanted to find any of the things (IMSI, ICCID, IMEI, MSISDN) so that I can detect if the SIM is related to my mobile carrier. But I guess Apple doesn't allow that.

现在作为一种解决方法,我会要求用户在我的应用程序中注册他的电话号码。但是如果用户更换SIM卡,那么会再次发生不好的事情。

Now as a workaround I will ask the user to register his phone number with my app. But then again bad things will happen if user changes the SIM.

我有什么方法可以使用官方iOS SDK检测SIM卡更改吗?

Is there any way for me to detect SIM change using the official iOS SDK?

推荐答案

应使用

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

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.

这篇关于检测SIM更改或使用官方iOS SDK查找SIM的IMSI?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-24 20:14