From 76bcfb5b7fab73148069720ad14eafda32b76556 Mon Sep 17 00:00:00 2001 From: xuzhiming Date: Wed, 6 Jan 2016 13:42:49 +0800 Subject: [PATCH] Update OpenUDID.m synchronize NSUserDefaults; --- OpenUDID.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/OpenUDID.m b/OpenUDID.m index 904066e..d535eda 100644 --- a/OpenUDID.m +++ b/OpenUDID.m @@ -363,6 +363,8 @@ + (NSString*) valueWithError:(NSError **)error { // if (localDict && saveLocalDictToDefaults) [defaults setObject:localDict forKey:kOpenUDIDKey]; + + [defaults synchronize]; // If the UIPasteboard external representation marks this app as opted-out, then to respect privacy, we return the ZERO OpenUDID, a sequence of 40 zeros... // This is a *new* case that developers have to deal with. Unlikely, statistically low, but still.