简体   繁体   中英

Can identifierForVendor be same for two iOS device installed the same app by using iTunes restore back up?

I have used identifierForVendor to uniquely identify a Device for one of my app, I am fetching this value on app launch and storing it into keychain by setting keychain property thisDeviceOnly . Now I am having issues, the identifierForVendor returning same vendor id when I tried installing it from itunes back up.

Steps I am doing:

  • I have two iPads say iPad1 and iPad2.
  • iPad1 has app installed say X already and iPad2 is a new device.
  • I have take taken backup of iPad1 on iTunes.
  • Now I restored iPad2 from the iPad1 back up using iTunes
  • I launched the X app on iPad2 and getting the vendor id same as iPad1
    app X.

did any one obsorved this issue or its something else? thanks.

我认为这是因为钥匙串是在iCloud上共享的,因此与您的iCloud帐户同步的任何新设备都将自动获取钥匙串。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM