When developing an app that requires me to uniquely identify phone users. I was hoping for some advice on whether it is best to use a phone's UDID or IMEI. Are there any advantages/disadvantages to using either. All comments would be greatly appreciated
Pros of ANDROID_ID:
ANDROID_ID
is not unique for android 2.2 and from 4.2)Cons of ANDROID_ID:
ANDROID_ID
can change on factory reset.
ANDROID_ID
can be null
It can be easily changed on a rooted phone
Several devices by several manufacturers are affected by the ANDROID_ID
bug in 2.2 and all of them have the same ANDROID_ID
, which is 9774d56d682e549c. Which is also the same device id reported by the emulator
Docs: http://android-developers.blogspot.in/2011/03/identifying-app-installations.html
ANDROID_ID
no longer uniquely identifies a device: https://stackoverflow.com/a/13465373/150016
Pros of IMEI
Cons of IMEI
Important Links
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With