I found that the appUID was not stored
YYXuelangwang opened this issue · comments
First of all, thank you for taking the time to check my questions. and Please forgive my poor English
NSString * appUID = (NSString *) [defaults objectForKey:kOpenUDIDAppUIDKey];
if(appUID == nil)
{
// generate a new uuid and store it in user defaults
CFUUIDRef uuid = CFUUIDCreate(NULL);
appUID = (NSString *) CFUUIDCreateString(NULL, uuid);
CFRelease(uuid);
}
The appUID from NSUserDefaults,but when i search the kOpenUDIDAppUIDKey, i found that the appuID was not stored;
Whether the code below should be changed
if (localDict && saveLocalDictToDefaults)
[defaults setObject:localDict forKey:kOpenUDIDKey];
changed like this
if (localDict && saveLocalDictToDefaults){
[defaults setObject:localDict forKey:kOpenUDIDKey];
[defaults setObject:appUID forKey:kOpenUDIDAppUIDKey];
}