无法拥有唯一的ios设备,因为广告标识符在ios 10之后返回为00000000-0000-0000-0000-000000000000 [英] unable to have a unique ios device, as advertising identifier returned as 00000000-0000-0000-0000-000000000000 after ios 10

查看:1836
本文介绍了无法拥有唯一的ios设备,因为广告标识符在ios 10之后返回为00000000-0000-0000-0000-000000000000的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我曾经使用apples广告标识符作为唯一设备ID密钥,以跟踪用户设备,但是随着升级到iOS 10并限制返回IDFA as 00000000-0000-0000-0000-000000000000的广告跟踪,我无法维护设备记录,在用户注册时,我可以使用其他任何替代方法来将设备ID唯一地存储起来.

I used to use apples advertising identifier as the Unique device ID key, to keep a track of users device, But with upgrade to iOS 10 and limit ad tracking returning IDFA as 00000000-0000-0000-0000-000000000000, I am unable to maintain the device records, Is there any other replacement which I can use for device id to be stored unique to a user as he signs up.

推荐答案

据我对您的要求的了解,您最好的选择是:

As per my understanding of your requirement your best option is: Identifier for Vendor (IDFV)

供应商标识符(IDFV)当所有来自删除了相同的供应商如果供应商只有一个应用程序,则表示您在卸载并重新安装应用程序后可以更改此ID.

Identifier for Vendor (IDFV) change when all apps from the same vendor are removed. If the vendor has only one app means this ID can change if you uninstall and reinstall app.

第三部分替代方案:

如果您同意第三方解决方案,则可以检查: FCUUID

If you are ok with third party solution you can check: FCUUID

使用 FCUUID ,您可以生成具有不同持久性级别的ID.

With FCUUID you can generate ID with different level of persistence.

如果您需要的持久性要比供应商标识符(IDFV)多,请使用FCUUID的uuidForDevice.

If you need more persistence than Identifier for Vendor (IDFV) use uuidForDevice of FCUUID.

//changes only on system reset, this is the best replacement to the good old udid (persistent to device)
+(NSString *)uuidForDevice;

您将在这篇文章中找到有关不同ID的非常有趣的讨论:

You will find a very interesting discussion about different IDs in this post:

  • The Developer’s Guide to Unique Identifiers
  • UIDevice uniqueIdentifier Deprecated - What To Do Now?
  • iOS unique user identifier

希望您能从此信息中获得帮助.

I hope you get some help from this information.

这篇关于无法拥有唯一的ios设备,因为广告标识符在ios 10之后返回为00000000-0000-0000-0000-000000000000的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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