Uuid / Guid

Sure would be nice if the API had a call like os.getGUID()  … or similar. Those of us that are trying to sort out how to manage interaction between multiple instances of our apps would really appreciate some native support for Globally Unique Identifiers.

Just my latest 2 cents.  Certainly cannot be a tough add to the api.

I have seen: http://developer.coronalabs.com/code/uuidguid-string-generator-coronalua

Which may work for now but would like to see you guys at the lab do us properly on this issue.

Cheers,

m

By the way, your link to that code on Code Exchange doesn’t work because of the trailing space.  I was coming up with a similar idea, and having it either link to a Game Center ID (Apple ID) which has to be unique, or a Facebook or Twitter account, but not everyone uses them.

Corona Cloud could be the way to do it, but 1. the user should not have to require credentials to set it up, and 2. what if the user is never online?  I guess then, we have to ask ourselves, what is the purpose and what will the user be willing to compromise in order to get the features we are trying to give them?

Well im my case i am looking for GUIDs to be added to database entries so that i can track their values from app to server and back out to the user’s devices.  Or in the context of a game making sure that both players are referring to the same object.  So rather than just needing one GUID for a user i need one for every object that they create.  It is quite typical to use GUIDs when doing client server synchronizations.  the shame is that the API does not have any support for it that i can find.

Hello guys, I’m looking for something similar in order to save payer progress in a database, in case he/she erases the game and then install it again, can you guys please post some url where I can get docs on how to setup such structure?

install -> saves server data with unique user id -> if players uninstalls and installs again -> be able to regenerate same ID so gather data from server and update game with previous saved data.

I’m a bit lost in this regard and any help would be very helpful.

Thanks!!

By the way, your link to that code on Code Exchange doesn’t work because of the trailing space.  I was coming up with a similar idea, and having it either link to a Game Center ID (Apple ID) which has to be unique, or a Facebook or Twitter account, but not everyone uses them.

Corona Cloud could be the way to do it, but 1. the user should not have to require credentials to set it up, and 2. what if the user is never online?  I guess then, we have to ask ourselves, what is the purpose and what will the user be willing to compromise in order to get the features we are trying to give them?

Well im my case i am looking for GUIDs to be added to database entries so that i can track their values from app to server and back out to the user’s devices.  Or in the context of a game making sure that both players are referring to the same object.  So rather than just needing one GUID for a user i need one for every object that they create.  It is quite typical to use GUIDs when doing client server synchronizations.  the shame is that the API does not have any support for it that i can find.

Hello guys, I’m looking for something similar in order to save payer progress in a database, in case he/she erases the game and then install it again, can you guys please post some url where I can get docs on how to setup such structure?

install -> saves server data with unique user id -> if players uninstalls and installs again -> be able to regenerate same ID so gather data from server and update game with previous saved data.

I’m a bit lost in this regard and any help would be very helpful.

Thanks!!

For what it’s worth, I wrote an RFC-compliant UUID generator (http://developer.coronalabs.com/code/uuid-v4-generator). Such a thing doesn’t address maxtrix2000’s query since there’s nothing device-specific about it (you won’t generate the same ID twice on the same device, ever).

For what it’s worth, I wrote an RFC-compliant UUID generator (http://developer.coronalabs.com/code/uuid-v4-generator). Such a thing doesn’t address maxtrix2000’s query since there’s nothing device-specific about it (you won’t generate the same ID twice on the same device, ever).