iOS6 UDID - identifierForVendor与identifierForAdvertising相比有哪些优势? [英] iOS6 UDID - What advantages does identifierForVendor have over identifierForAdvertising?

查看:295
本文介绍了iOS6 UDID - identifierForVendor与identifierForAdvertising相比有哪些优势?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Apple正在更改其iOS6的隐私设置并弃用设备UUID(UDID)。根据WWDC演示文稿和文档,UDID有两个替换,都在 UIDevice 类中:

Apple is changing their privacy settings for iOS6 and deprecating device UUIDs (UDIDs). According to a WWDC presentation and the docs there are two replacements for the UDIDs, both in the UIDevice class:


  • 来自同一开发者的应用之间的ID相同。

  • 删除该团队ID的最后一个应用程序。

  • 备份。


  • 设备独有。

  • 适用于所有应用程序;用于广告 - iAd已从iOS 6及更高版本的UDID转换。

  • 重置删除所有内容和设置。

  • 备份。

  • Unique to the device.
  • Available to all applications; used for advertising — iAd has converted from UDID for iOS 6 and later.
  • Reset with "Erase All Content & Settings".
  • Backed up.

在我看来, -identifierForVendor 不如 -identifierForAdvertising ,因为它会在上次从供应商卸载应用时重置,并擦除所有内容和设置。

It seems to me that -identifierForVendor is inferior to -identifierForAdvertising since it would get reset on last uninstall of an app from a vendor and by "erase all contents & settings".

-identifierForVendor 有什么优势? -identifierForAdvertising

推荐答案

重要提示

Apple刚刚发布iOS 6.0并取消了NDA。

Apple just released iOS 6.0 and the NDA has been lifted.

对于预先包含引用代码的开发人员

For developers who preemptively included code that referenced

[[UIDevice currentDevice] identifierForAdvertising]

此方法已在iOS 6中包含 NOT 。如果您使用上述方法,您的应用程序将(最有可能y)崩溃并被拒绝!

this method has NOT been included on iOS 6. If you use the above method, your app will (most likely) crash and be rejected!

相反,Apple创建了一个新类 ASIdentifierManager ,其中包含方法 advertisingIdentifier 。这是苹果文档

Instead, Apple has created a new class ASIdentifierManager , which includes the method advertisingIdentifier. Here's the apple docs on it:

这篇关于iOS6 UDID - identifierForVendor与identifierForAdvertising相比有哪些优势?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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