The best post so far I have come up with: can be found here.
The post discuss many alternatives, the best one I have found is to generate the CFUUID and save it in the keychain. Because its very rare that a user will reset his device/keychain.
- Get UUID from keyChain
- if UUID found ok, return back the UUID.
- if no UUID found generate UUID.
- Save UUID in KeyChain
- Return UUID from keyChain.
1
solved Best Unique Identifier alternative [duplicate]