0

I want to uniquely identify devices of my app users. Since I can't have imei, what are other options?

  • possible duplicate of [IMEI as a fallback of UDID, is it a good idea?](http://stackoverflow.com/questions/11342094/imei-as-a-fallback-of-udid-is-it-a-good-idea) – Sergey Kalinichenko Jul 21 '12 at 11:27
  • What do you think about the Device Token? http://stackoverflow.com/questions/7601011/saving-the-devicetoken-for-later-use-in-apple-push-notification-services – Mariusz B. Jul 21 '12 at 11:28
  • Using the device token is not a good idea for multiple reasons. 1) The device token changes each time the user restores iOS to their device. 2) The device token is different for the same device depending on whether the app was build using a development profile vs. a distribution profile. 3) The device token is really intended for use with Apple Push Notifications. Please see my answer below for a better recommendation. – radesix Jul 21 '12 at 18:27

2 Answers2

2

We create our own UDID's based on a hash of the device MAC address and the bundle identifier. This ensures that we can uniquely identify our app on a specific device.

You could also create a hash based only on the MAC address if you need a unique ID across multiple apps.

I've actually written a blog post about how to do this and provided some sample code here:

https://radeeccles.com/blog/create-your-own-unique-device-identifier-udid

radesix
  • 5,834
  • 5
  • 24
  • 39
0

You might have a try with OpenUDID.

Cyrille
  • 25,014
  • 12
  • 67
  • 90