Get Updates By E-mail 

Article Written By:
Johann Dowa

Open Source iOS Library For Obtaining Unique Identifiers With Different Persistence Levels


Here’s an open source library submitted by Fabio Caccamo providing a very simple API for obtaining unique identifiers with different persistence levels. There’s also an optional feature alloying to share UUIDs created for all devices of the same user.

Included are methods for grabbing a uuid each time an app is launched, installed, every session and more.

This listing from the readme shows the available methods in FCUUID and their persistence levels:

//changes each time (no persistent)
+(NSString *)uuid;

//changes each time the app gets launched (persistent to session)
+(NSString *)uuidForSession;

//changes each time the app gets installed (persistent to installation)
+(NSString *)uuidForInstallation;

//changes each time all the apps of the same vendor are uninstalled (this works exactly as identifierForVendor)
+(NSString *)uuidForVendor;

//changes only on system reset, this is the best replacement to the good old udid (persistent to device)
+(NSString *)uuidForDevice;

//returns the list of all uuidForDevice of the same user
//in this way it's possible manage guest accounts across multiple devices easily.
+(NSArray *)uuidsOfUserDevices;

You can find FCUUID on Github here.

A great alternative to using identifierForVendor.


Submit A Resource

Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?

You can submit the url here.

The resources we feel will appeal to our readers the most will be posted on the front page.