Need an unique ID of the ios APP

124 Views Asked by At

I am building a framework in iOS where I need an unique key which will never change even after the localization, I was using the below code to generate one

NSDictionary *infoPlist = [[NSBundle bundleForClass:[AISSUtility class]] infoDictionary];
    NSString *name = [infoPlist objectForKey:@"CFBundleDisplayName"];
    NSString *identifier = [infoPlist objectForKey:@"CFBundleIdentifier"];

    NSString *UniqueID = [NSString stringWithFormat:@"%@.%@", name, identifier];

but localization may change the app name which will in turn changes the bundle name,

I cant even use the device vender ID, as I am going to use this in some library , multiple apps can be installed on the same device which uses my library,

Please suggest me some Unique ID which meets my requirement, thanx in advance

0

There are 0 best solutions below