I am working on an app in which I need a device specific globally unique identifier (i.e imei etc). I have tried the following code, but it always generates a new uuid .
CFUUIDRef uuid = CFUUIDCreate(kCFAllocatorDefault);
NSString *uuidStr = ( NSString *)CFUUIDCreateString(kCFAllocatorDefault, uuid);
CFRelease(uuid);
is there any way I can get a unique identifier that will last forever.
P.S:- I am using iOS 5 and iOS 6.