Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does identifierForVendor change on app update?

I have heard stories where UIDevice.identifierForVendor changed during an app update from App Store.

This answer goes like "...There was a bug affecting the calculation of identifierForVendor when updating an app from app store...". See corresponding big report at rdar://22677034.

Do you have experienced such issues?
Was this a bug that has fixed since?

like image 600
Geri Borbás Avatar asked Jan 08 '18 15:01

Geri Borbás


People also ask

Does Identifierforvendor change?

The value changes when the user deletes all of that vendor's apps from the device and subsequently reinstalls one or more of them. The value can also change when installing test builds using Xcode or when installing an app on a device using ad-hoc distribution.

What is identifierForVendor in iOS?

An alphanumeric string that uniquely identifies a device to the app's vendor. iOS 6.0+ iPadOS 6.0+ Mac Catalyst 13.1+ tvOS 9.0+

What is identifier for vendor?

IDFV is an acronym for Identifier for Vendors, which allows app developers to measure user level data across multiple apps from the same content provider without having to request their consent.


1 Answers

According to the official documentation, a simple reinstall should not affect identifierForVendor.

However, it is documented behavior that the identifier changes if conditions are met. Don't assume that identifierForVendor always remains the same. There can always be edge cases where the system incorrectly identifies an update as a reinstall etc.

From the documentation linked above:

The value in this property remains the same while the app (or another app from the same vendor) is installed on the iOS device. The value changes when the user deletes all of that vendor’s apps from the device and subsequently reinstalls one or more of them. The value can also change when installing test builds using Xcode or when installing an app on a device using ad-hoc distribution. Therefore, if your app stores the value of this property anywhere, you should gracefully handle situations where the identifier changes.

like image 175
Tamás Sengel Avatar answered Sep 19 '22 08:09

Tamás Sengel