1

In the about section of iOS it has a lot of information about the device.

Can I and Am I allowed to access this information?

I want to fetch data of settings -> General -> About in swift. Is it feasible to get the same in iOS ?

Ved Rauniyar
  • 1,398
  • 10
  • 21

2 Answers2

5

You can get the trivial ones, but interesting ones like serial number and IMEI are restricted to system apps only.

  • Name: UIDevice.current.name [1]
  • Network: ?
  • Number of songs, videos, photos: Use MPMediaQuery, ALAssetsLibrary or PHPhotoLibrary; see [3] and related links
  • Number of apps: Private API [4].
  • Capacity / Available: NSFileManager [5]
  • OS Version: UIDevice.current.systemVersion
  • Carrier: CTTelephonyNetworkInfo.subscriberCellularProvider.carrierName [6]
  • Model: Private API
  • Serial: Jailbreaking required
  • Wi-Fi MAC: Jailbreaking required [7]
  • Bluetooth: Jailbreaking required
  • IMEI / MEID / ICCID / SEID: Jailbreaking required [8] (Also: [9] does not work)
  • Modem firmware: ?
Community
  • 1
  • 1
kennytm
  • 469,458
  • 94
  • 1,022
  • 977
3

Explore UIDevice class you will get some information programmatically:

UIDevice.currentDevice()

https://developer.apple.com/reference/uikit/uidevice

Dheeraj D
  • 3,651
  • 4
  • 16
  • 33