-1

I am developing a android application for a exploratory project using client server architecture. I thought of using UDID but now its replaced by new "Advertising ID", but in my application, i need to store data about user on server with some unique ID per device. so what should i use as alternative to UDID? i checked open UDID but that is also outdated now. Using "advertising ID" imposes problem of consistency when user clears/resets his advertising ID.

Request the community to help me out.

Dipesh Mitthalal
  • 134
  • 1
  • 1
  • 11

3 Answers3

0

There is also identifierForVendor see more in apple docs

sage444
  • 5,661
  • 4
  • 33
  • 60
0

You can register the device with the Google Cloud Messaging platform.

When you register the device correctly this gives you back a register id that´s unique for every device.

http://developer.android.com/google/gcm/client.html

UPDATE

You can also, if you haven't tried it out yet, to user the telephony manager to get the device identifier.

TelephonyManager tManager = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE);
String uuid = tManager.getDeviceId();

On iOS you can try this

NSString *UUID = [[NSUUID UUID] UUIDString];

This will give you a unique id per app.

reixa
  • 6,903
  • 6
  • 49
  • 68
  • I am new to GCM. I will definitely try it out. But using GCM registration ID is a workaround. Lets dig to find solution without any dependency(in this case GCM). Thanks. – Dipesh Mitthalal Feb 13 '14 at 12:28
  • Does GCM register id remain same always? – N Sharma Feb 13 '14 at 12:38
  • @Williams it should return a unique identifier for that app and should stay the same since it will be using it to send notifications. – reixa Feb 17 '14 at 08:19
  • @axierjhtjz UDID to uniquely identify the device, if you are considering the package name which unique identify the app then both are totally different case. OP want here unique identity to identify the device – N Sharma Feb 17 '14 at 09:07
0

I don't have much idea about Android :

But Check these :

GeneratingDeviceSpecificSerialNo && HEre

In IOS :

-identifierForVendor
  1. ID that is identical between apps from the same developer.

  2. Erased with removal of the last app for that Team ID.

  3. Backed up.

For more Info Here

Community
  • 1
  • 1
Kumar KL
  • 15,315
  • 9
  • 38
  • 60
  • Google account name does not identify device uniquely. one may own more than one android device and uses same account in all of his/her devices – Dipesh Mitthalal Feb 13 '14 at 12:34