使用Objective-C查找IMEI号 [英] Finding IMEI number using Objective-C

查看:117
本文介绍了使用Objective-C查找IMEI号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要找到一种方法来获取 iPhone 设备的IMEI号码。这个问题不重复。

I need to find a way to get the IMEI number of an iPhone device. This question is not a duplicate.

我经历了几个论坛,包括SO,没有找到答案的运气。

I have gone through several forums including SO, and had no luck finding an answer.

有人说Apple不允许开发人员看到 IMEI 号码( SO post ),有人说使用 UDID 代替(SO发布)。有人说不推荐使用 UDID (在iOS 7中)。

Some say Apple doesn't allow developers to see the IMEI number (SO post), and some say to use UDID instead (SO post). Some say that UDID is deprecated (in iOS 7).

我需要知道以下内容:

1。) Apple 允许开发人员检索设备的 IMEI 号码?

1.) Does Apple permit developers to retrieve the IMEI number of the device?

2.。我怎么能以编程方式执行吗?

2.) How can i programatically do it?

3。)如果Apple不允许开发人员收集 IMEI 号码,他们是否为设备提供任何其他唯一编号?

3.) In case if Apple doesn't allow developers to gather the IMEI number, do they provide any other unique number for the device?

4。)有人建议使用电话框架。如果我这样做,Apple会拒绝我的申请吗?

4.) Some suggest to use Telephony framework. If i do so, will apple reject my application?

推荐答案

Apple不允许您再识别设备。

Apple does not allow you to identify a device any more.

UDID MAC地址和所有其他设备标识符。

UDID, MAC address and all other device identifiers are no longer accessible or allowed by Apple.

Apple建议您使用UUID(您需要存储)你自己或), identifierForVendor <击>或 advertisingIdentifier

Apple suggest that you use either UUID (which you will need to store your self or), identifierForVendor or advertisingIdentifier.

Apple现在也拒绝使用 advertisingIdentifier 并且不显示任何广告应用。

任何方式获取IMEI号是使用私有方法,Apple也不允许这样做。因此,您的移动应用可能会被拒绝。

Any means to get the IMEI number are using private methods, which is also not allowed by Apple anymore. And your mobile app might/will get rejected because of this.

这篇关于使用Objective-C查找IMEI号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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