iOS 14.5正式版苹果将限制idfa使用,国内广告商想出了一套标准,大家都用这套标准来计算一个标识caid用来跟踪用户

caid

说明

苹果实施新的idfa政策之后,广告商们用到的归因方法。
收集用户设备的一些信息用特定的算法来生成唯一标识。
不同厂商计算caid方式可能不一样,这里提供可能会用到的设备信息,服务端收到用户的这些信息后自行计算。

参数 说明
boot 1611888252 系统启动时间
carrier SIMULATOR 运营商Code
country US 国家
disk 499963170816 硬盘容量
hwmodel D10AP hw.model
language zh-Hans-US 语言
model iPhone10,3 hw.machine
ram 34359738368 内存大小
timezone 28800 时区
uname eHjnmoRpUGhvbmUxMw== 手机名称Base64
update 1611888252 系统更新时间
version 10.3 系统版本

运营商Code说明

00 02 07 08 => 中国移动
01 06 09 => 中国联通
03 05 11 => 中国电信
04 => 中国卫通
20 => 中国铁通
不在以上范围内直接用carrier的值

使用方法

#import <caid/FkCaid.h>
NSLog(@"%@", [FkCaid totoal]);

Installation

caid is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'caid', '~> 1.0.0'

Author

pdso, pd@99d.in

License

caid is available under the MIT license. See the LICENSE file for more info.

posted @ 2021-02-02 10:54  ZmY0  阅读(1216)  评论(1编辑  收藏  举报