I had my app already in app store. I want to upload the new version. With the new version, the device ID (identifierForVendor) gets changed. If we delete and reinstall the Old App(Appstore) it is working fine. But if we update the new version only we are getting the device ID Change.
Can someone help to fix this critical issue.
We are using the following Code to get the device ID
+(id)getUDIDNumber
{
static NSString *vendorIdentifier = nil;
if (SYSTEM_VERSION_LESS_THAN(@"6.0"))
{
// code here
vendorIdentifier = [UIDevice uniqueDeviceIdentifier];
}
else if (SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"6.0"))
{
// code here
id vendorIdObject = [[UIDevice currentDevice] identifierForVendor];
vendorIdentifier = [vendorIdObject UUIDString];
}
}