gpt4 book ai didi

iOS 6 UDID - identifierForVendor 相对于 identifier For Advertising 有什么优势?

转载 作者:IT王子 更新时间:2023-10-29 07:32:27 27 4
gpt4 key购买 nike

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

-identifierForVendor

  • 同一开发者的应用之间的 ID 相同。
  • 删除该团队 ID 的最后一个应用程序。
  • 已备份。

-identifierForAdvertising

  • 设备独有。
  • 适用于所有应用程序;用于广告——iAd 已从适用于 iOS 6 及更高版本的 UDID 转换而来。
  • 使用“清除所有内容和设置”进行重置。
  • 已备份。

在我看来,-identifierForVendor 不如 -identifierForAdvertising,因为它会在最后一次从供应商处卸载应用程序并通过“清除所有内容 &设置”。

-identifierForVendor-identifierForAdvertising 有什么优势?

最佳答案

重要提示:

Apple 刚刚发布了 iOS 6.0,NDA 已经解除。

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

[[UIDevice currentDevice] identifierForAdvertising]

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

相反,Apple 创建了一个新类 ASIdentifierManager ,其中包含 advertisingIdentifier 方法。这是 apple docs在上面:

关于iOS 6 UDID - identifierForVendor 相对于 identifier For Advertising 有什么优势?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11836225/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com