IMEI作为UDID的后备,这是一个好主意吗? [英] IMEI as a fallback of UDID, is it a good idea?

查看:97
本文介绍了IMEI作为UDID的后备,这是一个好主意吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

关于UDID的另一个问题...

Another question about UDID ...

UDID是电话的唯一标识符,但是IMEI号码也是唯一标识符.我知道设备可以具有不同的MAC地址,但是IMEI是唯一的.

UDID is a unique identifier for the phone, but the IMEI number is also a unique identifier. I understand that a device can have different MAC adress, but the IMEI is unique.

所以我的问题是我应该使用IMEI作为UDID的后备.尽管,如果已弃用UDID以避免客户跟踪,Apple是否有可能会拒绝使用IMEI号码的应用程序,甚至禁用访问IMEI号码的可能性?

So my question is should I use IMEI as a fallback of the UDID. Although, if the UDID has been deprecated to avoid customer tracking, is it possible that Apple will reject application that use the IMEI number, or even disable the possibility to access the IMEI number ?

推荐答案

我敢肯定,如果不使用私有框架,您将无法获得iPhone's IMEI,如果您这样做,您将被自动拒绝.甚至更多的iPods没有IMEI号. Apple也禁止使用UDID,因此您应遵循Apple's建议:

I am sure you can't get the iPhone's IMEI without using a private framework and if you do so you will be automatically rejected. Even more iPods does not have an IMEI number. Apple also forbids using the UDID, so you should stick to Apple's suggestions:

特殊注意事项
不要使用uniqueIdentifier属性.要创建特定于您的应用的唯一标识符,您可以调用 CFUUIDCreate函数创建一个UUID,并将其写入默认值 使用NSUserDefaults类的数据库.

Special Considerations
Do not use the uniqueIdentifier property. To create a unique identifier specific to your app, you can call the CFUUIDCreate function to create a UUID, and write it to the defaults database using the NSUserDefaults class.

这篇关于IMEI作为UDID的后备,这是一个好主意吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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