Hacker News new | ask | show | jobs
by blueprint 4838 days ago
Heads up to iOS devs: the advertising identifier is generated and changes each time that method is called. Generally a good idea to store it in user defaults or keychain and check for it before generating a new one. More info there http://stackoverflow.com/a/12933454/122115
1 comments

The advertising identifier does not change on every call.

Using "CFUUIDCreate" IS WRONG, though. It generates a GUID. That's what CFUUIDCreate is supposed to do. But it's the wrong method to call to get the advertising identifier.

You get the advertising identifier from ASIdentifierManager, and it does not change unless the user resets it.

That's what I get for informing others of something I hadn't actually confirmed. Thanks for the correction. :)