There's no way to ensure that on the device, you will have to check for uniqueness server side.
Getting a cross platform UUID
-
26-06-2023 - |
質問
I'm building an app that requires getting a UUID and sending it to my server to get a unique app key (for handling communication with andriod devices reasons).
I am currently using:
NSString *id = [[NSUUID UUID] UUIDString];
My question is, how can i make sure that any other device using my app won't get the same UUID (i know the odds of that happening are small).
I don't care about persisting the UUID, because i will be using the app key given to me by the server. All i need is to make sure i will get a truly cross platform UUID.
Thanks
解決
所属していません StackOverflow