You cannot get the UDID from the phone book API at the moment.
Why?
UDID is a unique identifier for iOS devices, and it is not available on other platforms such as Android, Windows, etc. And therefore, the phone book cannot provide udid, since it must support all platforms.
Solution :
The Phonegap API provides another unique uuid identifier. This will be unique for each installation of the application.
Disadvantage . This unique key is a system-generated key that is created each time the application is downloaded (first application launch). And therefore, you cannot correctly identify the device. Removing the application and installing it again will lead to the regeneration of another udid.
URL: http://docs.phonegap.com/en/1.0.0/phonegap_device_device.md.html#device.uuid
Hope this makes sense.
source share