-
Notifications
You must be signed in to change notification settings - Fork 436
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Returns different OUDIDs under iPhone sim 5.1 #22
Comments
I was wrong; the UDID stays always the same. But it looks like the code goes through the 100-cycle loop every time the app is relaunched. Is this the intended behavior? |
That's a good question. I'm curious with this loop as well. Even though this 100-cycle loop is not really a noticeable processing bottleneck. I tried to put a break, when the availableSlotPBid is assigned:
This should be okay, right? Since it doesn't need to keep looking for available slots when one is already found. |
Well, no, you need to go through the loop to find out if there has been an opt out for that bundleid/guuid... perhaps a break after the optedOut makes sense indeed. |
I'm using OpenUDID, unmodified, to replace the deprecated Apple-provided uniqueIdentifier api.
When compiling for iOS 5.1 everything works fine, except that [OpenUDID value] returns a different value every time the application is relaunched (I'm using the 5.1 Simulator). It seems unable to store the value persistently.
Going through the code with the debugger, I can see the lines:
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
NSString * guuid = (NSString *) [defaults objectForKey:kAppGUUID];
...returning always guid==nil.
Am I doing something wrong?
The text was updated successfully, but these errors were encountered: