简体   繁体   English

通过iOS上的SIM卡以编程方式获取IMEI和序列号

[英]Get IMEI and serial number from SIM on iOS programatically

I need to get the IMEI number and serial number of the SIM card in iOS, i have done this in android using the telephonymanager, but how can i achieve this on iOS? 我需要获取iOS中SIM卡的IMEI编号和序列号,我已经使用telephonymanager在android中完成了此操作,但是如何在iOS上实现呢?

I need this value because I save it in a data base using a web service, each time a client attemp to log in, so it doesnt matter if the client changes celphone or not, the account will be the same because the SIM card will be the same one. 我需要此值,因为每次使用客户端时,我都会使用Web服务将其保存在数据库中,因此,无论客户端是否更改celphone都无关紧要,该帐户将是相同的,因为SIM卡将是同一个。

I have been searching on the web, and found a way with this: 我一直在网上搜索,并找到了解决方法:

NetworkController.m

But it seems like this class has been removed from the web. 但是似乎该类已从网络上删除。 Another possible way to achieve my goal is to use: 实现我的目标的另一种可能方法是使用:

UIDevice-IOKitExtensions.m

But no documentation is given. 但是没有给出文件。 Any ideas? 有任何想法吗?

Does apple accepts an app using private framework? 苹果是否接受使用私有框架的应用程序?

Apple does not allow the use of private framework / api. 苹果不允许使用私有框架/ api。 Also, getting the users IMEI number will cause Apple to reject the app. 另外,获取用户的IMEI号码将导致Apple拒绝该应用程序。

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

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