Skip to content

I found that the appUID was not stored #73

@YYXuelangwang

Description

@YYXuelangwang

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];
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions