Always get a unique device id in iOS 7

后端 未结 7 2235
予麋鹿
予麋鹿 2020-12-12 17:36

Our iOS application is for specific users. So, we used device unique identifier for user identification. This approach works fine till iOS 6, because we are

7条回答
  •  感动是毒
    2020-12-12 17:55

    From the UIDevice Class reference for identifierForVendor:

    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 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.

提交回复
热议问题