I really have problem with getting unique deviceID. The code I am using now it this :
UIDevice.currentDevice().identifierForVendor!.UUIDString
I need it to be unique because it will be used at every async call Here is my state
1.Install app from Xcode (using that deviceID which is first time generated.) 2.Then I remove the app. 3.Then I install the app again from Xcode. 4.Device ID changed
So,how to make it unique to only one device = one id no matter where it install Xcode,TestFlight,AppStore.