Get Serial Number From Device?

I have a project that need to get serial number and network SSID. I have looking anywhere to get those 2 value but no luck to find it. is there anyway i can get those information from the device?

Answered by DTS Engineer in 860513022

Thanks for the clear explanation of the specific problem you’re trying to solve.

There’s been some recent developments in this space that should help you out here, namely the ManagedApp framework. With that your app can get credentials and configuration from the MDM system, allowing for the sort of coordination you’re looking to implement.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

I presume we’re talking iOS. If so, the answer varies:

  • There’s no supported API to get the serial number.

  • You can get the SSID, although it requires location permission. For links to the API docs, see TN3111 iOS Wi-Fi API overview.

You tagged your post with Device Management, suggesting that you are targeting a managed environment. If so, let me know ‘cause there are more options in that space.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

What would be the options available in a managed environment? I'm making a 3rd-party app which would be installed by end users who have iPhones managed by my customer through an MDM. I need to be able to uniquely identify the device across three systems: the MDM of customer's choice, my web API (which pulls data from the MDM) and my mobile app (which will connect to the web API). In the end I need to know that the device running the mobile app is the same device that my web API synced from the MDM.

Ideally the unique ID should be read-only so that the MDM cannot override it. If using the serial number is out of the question, I imagine the solution would be the MDM pushing some data to my app?

I found this old sample, but I don't know how relevant it is nowadays. https://developer.apple.com/library/archive/samplecode/sc2279/Introduction/Intro.html

Thanks for the clear explanation of the specific problem you’re trying to solve.

There’s been some recent developments in this space that should help you out here, namely the ManagedApp framework. With that your app can get credentials and configuration from the MDM system, allowing for the sort of coordination you’re looking to implement.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Get Serial Number From Device?
 
 
Q