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 ?
I want to create an app to extract and display information of IOS devices. Device information includes:
Please help, how to extract those data with objective-c ?
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.
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.
Make and model are available through the UIDevice
class. As noted, IMEI and Serial Number are not available through public API's.