Getting Device ID or Mac Address in iOS

Daniel picture Daniel · Jul 10, 2009 · Viewed 44.5k times · Source

I have an application that uses rest to communicate to a server, i would like to obtain the iphones either mac address or device ID for uniqueness validation, how can this be done?

Answer

Steven Canfield picture Steven Canfield · Jul 10, 2009

[[UIDevice currentDevice] uniqueIdentifier] is guaranteed to be unique to each device.