0

I want to create an app to extract and display information of IOS devices. Device information includes:

  • Make
  • Model
  • Serial Number
  • IMEI

Please help, how to extract those data with objective-c ?

rmaddy
  • 314,917
  • 42
  • 532
  • 579
tesmojones
  • 2,496
  • 2
  • 21
  • 40
  • Access to identifiers that uniquely identify a device is not permitted. But for make and model, you can use `uname` from `sys/utsname`. See [this question](http://stackoverflow.com/questions/11197509/ios-iphone-get-device-model-and-make) – FluffulousChimp May 03 '14 at 01:37

3 Answers3

1

The UIDevice developer reference is a great source. The article is very straightforward, but here is the jist of it.

UIDevice *device  = [UIDevice sharedDevice];
NSString *name    = [device name];
NSString *sysname = [device systemName]; 
NSString *model   = [device model];
float     battery = [device batteryLevel];

UIDevice class offers many ways to gain information on the current state of the users device and information about the specific device.

Brian Tracy
  • 6,801
  • 2
  • 33
  • 48
0

IMEI and serial number cannot be accessed by apps unless they use private APIs. Apple will reject your app if it uses any private APIs.

Zia
  • 14,622
  • 7
  • 40
  • 59
0

Make and model are available through the UIDevice class. As noted, IMEI and Serial Number are not available through public API's.

David Berry
  • 40,941
  • 12
  • 84
  • 95