There is no unique constant identifier for an iDevice that you can use anymore. However, you can just make a new UUID once your app is started for the first time, store this in the NSUserDefaults
and use that UUID - it will never change as long as the app is not installed anew (updates will still keep the UUID intact).
Create a UUID like this when your app starts for the first time:
NSString* knownUUID = [[NSUserDefaults standardUserDefaults] objectForKey:@"myUUID"];
if (!knownUUID)
{
NSString *uuid = [[NSUUID UUID] UUIDString];
[NSUserDefaults standardUserDefaults] setObject:uuid forKey:@"myUUID"];
[NSUserDefaults standardUserDefaults] synchronize]; // store defaults
}