Identifier for vendor

suggest change

One line reads the vendor identifier. This is not the old device UDID. The Swift call is Swift 2 (currentDevice(), UUIDString). Swift 3 uses UIDevice.current.identifierForVendor?.uuidString.

Swift

let UDIDString = UIDevice.currentDevice().identifierForVendor?.UUIDString

Objective-C

NSString *UDIDString = [[[UIDevice currentDevice] identifierForVendor] UUIDString];

identifierForVendor is a unique identifier that stays the same for every app of one vendor on one device, unless the user deletes all of that vendor’s apps from the device. See Apple’s documentation about when this UUID changes.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents