Other than the user manually resetting it, has anyone observed other things that will cause the ADID to be reset? OTA OS Upgrades? iTunes Restores?
问题:
回答1:
(effects on advertisingIdentifier
and identifierForVendor
, as tested on an iPhone 3GS with iOS 6.0.1 and iOS 6.1.3 and an iPhone 4S with iOS 6.1.3 and iOS 7.0.0)
"Reset All Settings" in iOS Settings app
No effect"Erase All Content and Settings" in iOS Settings app
Resets bothadvertisingIdentifier
andidentifierForVendor
.Restoring a device via iTunes
Resets bothadvertisingIdentifier
andidentifierForVendor
.Deleting an app from the device
ResetsidentifierForVendor
, if this was the last app with a specific Team ID.Updating an app (automatically or via App Store)
No effectUpdating an app via TestFlight or Ad-Hoc
May reset theidentifierForVendor
, according to documentation.Enabling/disabling "Limit Ad Tracking"
iOS 6.0.1: No effect
iOS 6.1.3: Resets theadvertisingIdentifier
.System Update OTA (iOS 6.0.1 to iOS 6.1.3)
No effectSystem Update OTA (iOS 6.1.3 to iOS 7.0.0)
Resets theidentifierForVendor
in some cases. (1)System Update via iTunes (iOS 6.1.3 to iOS 7.0.0)
Resets theidentifierForVendor
in some cases. (1)"Reset Advertising Identifier" in iOS Settings app
Resets theadvertisingIdentifier
. If some running (or suspended) apps already requested aadvertisingIdentifier
, they will not be able to retrieve the new one until they are stopped and relaunched.Backup via iTunes
No effectRestore of a Backup via iTunes (to the same device)
Restores the backed-up settings, including bothadvertisingIdentifier
andidentifierForVendor
. Note: If you delete multiple apps with some Team ID before the restore, theidentifierForVendor
will never be reset again until you reinstall all apps with that Team ID you had installed and delete them again. This seems to be a bug.Restore of a Backup via iTunes (to a different device)
Resets bothadvertisingIdentifier
andidentifierForVendor
.
(1) As far as I understand, this should not happen with Apps in the App Store. It seems to be related to the number of components in the app's bundleID and the respective provisioning profile: iOS 7 App Release Notes regarding App Deployment
In my tests, the identifierForVendor
in apps with 4 components did change (for versions with either developer or enterprise distribution provisioning profiles), but did not change for those with 3 components.
回答2:
Two cases:
- Manually choosing “Reset Advertising Identifier”. But if the app is running in the background, the identifier will remain active until the application is relaunched.
- Manually choosing “Reset All Content and Settings”.
Backups, OS upgrades, app re-install, or choosing “Limit Ad Tracking” won't reset the identifier.
AFAIK you could send the vendor ID and the advertising ID to the server, and when the user resets the advertising ID with “Reset Advertising Identifier”, you can match the new with the old one, because the vendor ID survives. No idea how Apple intends to prevent this.
回答3:
There is no official, definitive list from Apple. The documentation only states:
This identifier may change—for example, if the user erases the device—so you should not cache it.
Apple don't give any further detail. It's known that resetting the device changes the ADID, as does the user manually resetting it themselves (where this feature is available, so iOS 6.1+). I've not been able to find anything that suggests an OS update would reset the identifier.
It is of course possible other, undocumented behaviour resets the identifier, but I've not been able to find anything else.