fabiocaccamo / FCUUID

:iphone: :id:  iOS UUID / Universally Unique Identifiers library as alternative to UDID and identifierForVendor.
MIT License
1.61k stars 226 forks source link

iCloud Keychain Syn #6

Closed asyncios closed 8 years ago

asyncios commented 8 years ago

What Happens if iCloud is Sync Keychain and try to get device ID on 2 devices with same iCloud account.

fabiocaccamo commented 8 years ago

You will obtain the same device ID.

asyncios commented 8 years ago

How about put on UICKeyChainStore synchronizable false, it will fixes this?

fabiocaccamo commented 8 years ago

The uuidsOfUserDevices method needs a synchronizable keychain, so I think that the only one solution would be to store uuidForDevice and uuidsOfUserDevices on two different keychain instances (the first one not synchronizable and the second one synchronizable).

fabiocaccamo commented 8 years ago

UPDATE: by default keychain items are not synchronizable, so you will not obtain the same device ID. I'm going to release 1.2.0 version where:

fabiocaccamo commented 8 years ago

I just released 1.2.0 version.