xyu

XYUUID

iOS14 UUID KeyChain DeviceInfo IDFA UDID AppTrackingTransparency ATT

Showing:

Popularity

Downloads/wk

0

GitHub Stars

341

Maintenance

Last Commit

1yr ago

Contributors

1

Package

Dependencies

0

License

MIT

Categories

Readme

XYUUID

Alt text

MIT License Version GitHub Release Cocopods Github All Releases Github Platform

English | 简体中文

Installation

CocoaPods:
  • pod'XYUUID'
Manual integration:
  • Copy the XYUUID folder to your project

Background

  • Starting from iOS 10, IDFA may be restricted by users from ad tracking, resulting in the inability to obtain IDFA normally, thus making it impossible to use IDFA as a unique device identifier

Advantages of XYUUID

  • Simple API
  • Use the latest iOS 14 API to get IDFA
  • Universally unique identifiers with different persistence levels

Advantages of uuidForDevice

  • onger timeliness
  • Long storage
  • Lower conflict rate
  • Lower drift rate

API

Get UUIDs of different persistence levels

/// Random UUID, this value will be refreshed every time
+ (NSString *)uuid;

/// Install UUID, this value will be refreshed every time you reinstall
+ (NSString *)uuidForInstall;

/// Open the application UUID, this value will be refreshed every time the application is opened
+ (NSString *)uuidForAppOpen;

/// IDFA, open and close authorization, this value will be refreshed
+ (NSString *)uuidForIDFA;

/// IDFV
+ (NSString *)uuidForIDFV;

/// Device information UUID, generated according to device information, can remain unchanged for a period of time
+ (NSString *)uuidForDeviceInfo;

/// Keychain UUID, uninstall application remains unchanged
+ (NSString *)uuidForKeychain;

/// Device UUID, the unique identifier of the device
+ (NSString *)uuidForDevice;

Persistence level

UUIDApp relaunchReset Advertising IdentifierApp reinstallSystem rebootSystem upgradeSystem reset
uuid
uuidForInstall
uuidForAppOpen
uuidForIDFA
uuidForIDFV
uuidForDeviceInfo
uuidForKeychain
uuidForDevice

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100