Question

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

Was it helpful?

Solution

There's no way to ensure that on the device, you will have to check for uniqueness server side.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top