I used to use apples advertising identifier as the Unique device ID key, to keep a track of users device, But with upgrade to iOS 10 and limit ad tracking returning IDFA as 00000000-0000-0000-0000-000000000000
, I am unable to maintain the device records, Is there any other replacement which I can use for device id to be stored unique to a user as he signs up.
Asked
Active
Viewed 2,002 times
1

Geet
- 2,427
- 2
- 21
- 39
-
Your app is using Ad? – CRDave Dec 19 '16 at 07:51
-
yes,we are using it – Geet Dec 19 '16 at 08:00
-
Now you need Unique device ID for ad or for other use? – CRDave Dec 19 '16 at 08:20
-
For Ad its fine if I dont get but I need Unique device ID for maintaining a record of User, and this ID was the primary key to distinguish each device of user – Geet Dec 19 '16 at 08:52
-
You can use `identifierForVendor` or generate your own UUID – Paulw11 Dec 19 '16 at 09:24
-
identifierForVendor keeps chnaging again and again, can you send me any link to gernerate your own UDID – Geet Dec 19 '16 at 09:34
-
identifierForVendor change only if you uninstall and reinstall app. Are you getting different identifierForVendor on simple relaunch of app? – CRDave Dec 20 '16 at 06:16
1 Answers
1
As per my understanding of your requirement your best option is: Identifier for Vendor (IDFV)
Identifier for Vendor (IDFV) change when all apps from the same vendor are removed. If the vendor has only one app means this ID can change if you uninstall and reinstall app.
Third Part Alternative:
If you are ok with third party solution you can check: FCUUID
With FCUUID you can generate ID with different level of persistence.
If you need more persistence than Identifier for Vendor (IDFV) use uuidForDevice of FCUUID.
//changes only on system reset, this is the best replacement to the good old udid (persistent to device)
+(NSString *)uuidForDevice;
You will find a very interesting discussion about different IDs in this post:
- The Developer’s Guide to Unique Identifiers
- UIDevice uniqueIdentifier Deprecated - What To Do Now?
- iOS unique user identifier
I hope you get some help from this information.