How to get Serial Number or UDID for iPad/iPhone through swift

Hello All,


I want to get serial number or UDID of iPad(not app specific) through swift code? how I can ge that in Swift?


I tried I am getting only UUID, not anyother? Is there any api to import?

Replies

I want to get serial number or UDID of iPad (not app specific) through swift code?

There is no supported way to get the device’s serial number or UDID programmatically. Why do you need this info? Are you working in a managed environment?

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

I am not the author but have same need.


> Are you working in a managed environment?


Yes and that is why I need it.


We are putting in an app that needs to be able to get its own UDID so that it can move itself into a dynamic device group by modifying a property on its device.



Any suggestions would be appreciated.


Steven

  • Were you ever able to do this? I'm writing an app that enhances our MDM deployment and I need to query our MDM apis but I need the serial number or UDID.

Add a Comment