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.