0

I am making an app and I see that uniqueIdentifier is deprecated in iOS 5, but I kinda need to identify devices using the app so that I can tell them apart. I tried to access the uniqueIdentifier property of UIDevice and it still works. Does anyone know how long this will last? Will it work forever?

The reason I don't want to switch to CFUUID is because it will change each time the user installs and uninstalls the app.

Josh Sherick
  • 2,161
  • 3
  • 20
  • 37

3 Answers3

4

It's deprecated - you shouldn't rely on it. It could keep working for years and several new major versions, or it could stop with a minor version in a week's time.

SpoonNZ
  • 3,780
  • 1
  • 20
  • 25
  • Ok. I found this https://github.com/gekitz/UIDevice-with-UniqueIdentifier-for-iOS-5 which is awesome and lets you create a UUID based on the device's MAC address and I'm pretty sure some other things. – Josh Sherick Jan 03 '12 at 05:27
0

Look at my answer here: Is there any way to identify an iDevice user? this should give you and idea of the problem and posible solutions

Community
  • 1
  • 1
Ecarrion
  • 4,940
  • 1
  • 33
  • 44
0

I found this which is awesome and lets you create a UUID based on the device's MAC address and I'm pretty sure some other things.

Josh Sherick
  • 2,161
  • 3
  • 20
  • 37