I want to get serial number of iOS device programatically.
I try to use https://gist.github.com/0xced/566994 library and I am able to get serial number in simulator but this is not working on real device.
Note: I am not uploading my app on itune.
I want to get serial number of iOS device programatically.
I try to use https://gist.github.com/0xced/566994 library and I am able to get serial number in simulator but this is not working on real device.
Note: I am not uploading my app on itune.
The only way I found is using identifierForVendor property
#import "UIDevice+IdentifierAddition.h"
[[[UIDevice currentDevice] identifierForVendor] UUIDString];
NOTE : But if you are implementing a system for serving advertisements, use the value in the advertisingIdentifier property of the ASIdentifierManager class instead of this property.