Hi everyone what i am trying to do is the following: i have an app that gives the ability to the user to post a message to an external database. This ability i want to be available only one time. The second time, the user wont be able to post a message. I want to find a way to achieve this even if the app has been removed from the iphone. I want somehow to uniquely identify every time from my app the user's iphone device and save this unique value to my external database.
I have found this:
UIDevice *device = [UIDevice currentDevice];
NSString *uniqueIdentifier = [device uniqueIdentifier];
Is this code going to give me a unique identifier for each users device (even if the app has been removed then installed again) so i can save this to my external database and the next time the user posts check if it exists already the unique id? If it exists i would know that this is the second time that posts.