iPhone / iPad唯一标识符BESIDES UUID / UDID? [英] iPhone/iPad unique identifier BESIDES UUID/UDID?

查看:178
本文介绍了iPhone / iPad唯一标识符BESIDES UUID / UDID?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在进行的项目是从iPhone或iPad请求两个(甚至三个)唯一标识符。我知道,我知道...... UDID应该足够了,但我们正在努力查看是否还有其他可以使用的唯一标识符。

The project I am on is requesting two (or even three) unique identifiers from the iPhone or iPad. I know, I know... the UDID should be enough but we are trying to see if there are any other unique identifiers that we can use.

我可以得到来自手机的IMEI,序列号,MAC地址等使用IOKit.framework,但显然苹果不赞成这种做法,任何使用此框架的应用都将被拒绝。

I can get the IMEI, serial number, MAC Address, etc. from the phone using the IOKit.framework but apparently this is frowned upon by Apple and any app using this framework will be rejected.

有没有人有任何其他想法,或我错过的可以使用的标识符?

Does anyone have any other ideas, or identifiers that I am missing that could be used?

谢谢!

推荐答案

这个问题已经过时了,但现在已经添加了一个新的独特的,基于供应商的标识符来替换iOS 6中已弃用的UUID。

This question is old however a new unique, vendor based, identifier has now been added to replace the deprecated UUID in iOS 6.

[UIDevice identifierForVendor] 而不是 [UIDevice uniqueIdentifier] 自iOS 5.0起现已弃用

The [UIDevice identifierForVendor] should now be used instead of [UIDevice uniqueIdentifier] which is now deprecated as of iOS 5.0

示例用法:

NSUUID *uuid = [[UIDevice currentDevice] identifierForVendor];
NSString *uuidString = [uuid UUIDString];

这篇关于iPhone / iPad唯一标识符BESIDES UUID / UDID?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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