5

I'm experimenting a little with the identifierForVendor API.

As per the doc

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. Therefore, if your app stores the value of this property anywhere, you should gracefully handle situations where the identifier changes.

In Debug or Release with Ad Hoc, I cannot replicate this behavior. The identifier still remains the same even if I remove all the applications I have installed for the same vendor (the reversed domain name I'm using, e.g. com.test).

Is this can be observed only for App Store distribution? Am I missing something?

I'm running on a iOS 8.3.

Related question: iOS7 - Device unique identifier.

Community
  • 1
  • 1
Lorenzo B
  • 33,216
  • 24
  • 116
  • 190
  • 3
    Maybe it is essential that you cannot rely on fact that this will remain same but the situations when it exactly changes not documented well? – Azat Apr 30 '15 at 11:01
  • @Azat I think so. I will give a feedback in the documentation to point out this. Anyway, I'm curious to know if the behavior can be replicated on App Store applications. Thanks for the typo fix :-) – Lorenzo B Apr 30 '15 at 11:06
  • When I tested this behavior, I just logged vendorID in AppDelegate - after reinstallation of the app there is a new vendorID. Maybe, it is possible that after every install you have the same value, but maybe you just have another app with the same bundle? Test app or smth like that? – Mikhail Jul 16 '15 at 06:01

0 Answers0