SecureUDIDUDID 解決方案
SecureUDID 是一個開源的基于沙箱機制的 UDID 解決方案,旨在解決蘋果因為廢棄了 UDID 后導致的隱私問題。
示例代碼:
#import "SecureUDID.h" NSString *domain = @"com.example.myapp"; NSString *key = @"difficult-to-guess-key"; NSString *identifier = [SecureUDID UDIDForDomain:domain usingKey:key]; // The returned identifier is a 36 character (128 byte + 4 dashes) string that is unique for that domain, key, and device tuple.
評論
圖片
表情
