Since Udid and Openudid are disabled, the system comes with a unique identification that has two
ad Identifiers (Idfa-identifierforidentifier)
This is another new approach in iOS 6, andAdvertisingidentifier is part of the new framework adsupport.framework. The Asidentifiermanager Singleton provides a method for Advertisingidentifier, which returns a Nsuuid instance mentioned above by calling the method.
NSString *adid = [[[Asidentifiermanager Sharedmanager] advertisingidentifier] uuidstring];
Unlike Cfuuid and Nsuuid, ad identifiers are stored by the system. However, even though this is stored by the system, there are several cases where the ad identifier is regenerated. This ad identifier is regenerated if the user completely resets the system (restore location and privacy, general-purpose, Setup, and so on). In addition, if the user explicitly restores the ads (set-up, general-purpose, and so on, to the ads, and restore the ad identifiers), then the ad identifiers will be regenerated. With respect to the restoration of the ad identifier, it is important to note that if the program is running in the background, the user "restores the ad identifier" and then goes back to the program, and then gets the ad identifier and does not immediately get the restored identifier. You must terminate the program before restarting the program to obtain the restored AD identifier. I guess this is because Asidentifiermanager is a single case.
The user has a controllable switch to "limit ad tracking" for the ad identifier. Nick Arnott's article has been pointed out. Turn this switch on and actually do nothing, but that's what you want to limit your access to the ad identifier. This switch is a simple Boolean flag, and when you send the ad identifier to any server side, you'd better judge the value and then make the decision.
Example: 1e2dfa89-496a-47fd-9941-df1fc4e6484a
Vindor identifiers (Idfv-identifierforvendor)
This is also added to iOS 6, but the new method of getting this IDFV is added to the existing Uidevice class. As with Advertisingidentifier, this method returns a Nsuuid object.
NSString *IDFV = [[[Uidevice Currentdevice] Identifierforvendor] uuidstring];
Apple's Official document has the following description of Identifierforvendor:
The value of this property is the same for apps, come from the same vendor running on the same device. A different value is returned for apps on the same device this come from different vendors, and to apps on different Devi Ces regardless of vendor.
If such a condition is met, then the obtained value of this property will not change: the same device inside the same program-the same vindor-. If this is the case, then this value will not be the same: the same program-the same device-different vindor, or the same program-different devices-whether or not the same vindor.
After reading the above, I have a question like "What is Vendor". The first thing I think about is the Apple developer account. But it turns out to be wrong. And then I thought maybe there was a appidentifierprefix thing, like keychain access, can be shared among multiple programs. The same is true of the idea. Finally, vendor is very simple: a vendor is the first two parts of the cfbundleidentifier (reverse DNS format). For example, COM.DOUBLEENCORE.APP1 and com.doubleencore.app2 get the same Identifierforvendor because the first two parts of their cfbundleidentifier are the same. But the Identifierforvendor is completely different: com.massivelyoverrated or Net.doubleencore.
One thing to note here is that if the user uninstalls all the programs for the same vendor and then re-installs the program provided by the same vendor, Identifierforvendor will be reset at this point.
Example: 599f9c00-92dc-4b5c-9464-7971f01f8370
iOS device unique identification (available in version)