In swift, app we want unique device id.but will not get the unique UUID if i reinstall the same app.
Here's how we get UUID:
if let uuid = UIDevice.current.identifierForVendor?.uuidString { print(uuid) }
In swift, app we want unique device id.but will not get the unique UUID if i reinstall the same app.
Here's how we get UUID:
if let uuid = UIDevice.current.identifierForVendor?.uuidString { print(uuid) }
Read the docs carefully
https://developer.apple.com/documentation/uikit/uidevice/1620059-identifierforvendor
There are multiple conditions where the identifierForVendor
will not be cycled to a new unique value on a given device.
It’s fairly likely you still have an app from your company with a matching bundle ID. That will prevent the vendorID from being refreshed.