Since iOS 7 it's impossible to get UDID directly on an Apple iOS device.
i know apple suggests for using UIDevice.currentDevice().identifierForVendor?.UUIDString. but it changes every time after uninstalling the app.
i want to send GCM to the users, and per user, there are two to three ios devices. so for identifying the devices uniquely i want UDID.
for ex. if user has two devices
in my server database i'm storing it like this
userID->>> abc@xyz.com
GCMID->>> {UDIDForDevice1:GCMTokenForDevice1,UDIDForDevice2:GCMTOkenForDevice2}