-2

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.

Shiv
  • 1
  • 1
  • 2

1 Answers1

0

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.

Dishant Rajput
  • 1,329
  • 1
  • 10
  • 20