Tracking Users
Tracking is an unfortunate reality of developer life. Apple deprecated the UIDevice property that provided a unique identifier tied to device hardware. It replaced it with two identifier properties. Use advertisingIdentifier in the ASIdentifierManager class to return a device-specific identifier unique to the current device for advertising purposes. The identifierForVendor property on UIDevice supplies an identifier that’s tied to each app vendor. This should return the same unique identifier, regardless of which of your apps is in use. This is not a customer ID. The same app on a different device can return a different identifier, as can an app from a different vendor.
These identifiers are built using the new NSUUID class. You ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access