how to get the udid in ios 6 and ios 7

how to get the udid in ios 6 and ios 7  using -'I,want,to,get,the,device,id,and,send,it,into,a,web,service.,How,can,I,get,the,UDID,in,iOS,6


asked Sep 21, 2015 by rajesh
0 votes

2 Answers

0 votes

UDID is no longer available in iOS 6+ due to security / privacy reasons. Instead, use identifierForVendor or advertisingIdentifier.


An alphanumeric string that uniquely identifies a device to the app’s vendor. (read-only)

The value of this property is the same for apps that come from the same vendor running on the same device. A different value is returned for apps on the same device that come from different vendors, and for apps on different devices regardless of vendor.


An alphanumeric string unique to each device, used only for serving advertisements. (read-only)

Unlike the identifierForVendor property of UIDevice, the same value is returned to all vendors. This identifier may change—for example, if the user erases the device—so you should not cache it.

This post explains it well:

Also, see Apple's documentation for the identifierForVendor and advertisingIdentifier.

answered Sep 21, 2015 by android_master
0 votes

Check out OpenUDID:

OpenUDID is a drop-in replacement for the deprecated uniqueIdentifier property of the UIDevice class on iOS (a.k.a. UDID) and otherwise is an industry-friendly equivalent for iOS and Android, and most recently Windows C# and Silverlight (see links above).

Edit: Make sure since May 1st 2013 for iOS 6 to use the following Branch until the Main is updated:

answered Sep 21, 2015 by sachin wagh