16

In iOS 6, [UIDevice currentDevice].identifierForVendor provides a unique ID across all the apps from a single vendor.

Is there any way to do the same thing in Android?

TofuBeer
  • 60,850
  • 18
  • 118
  • 163
Kaisei Hamamoto
  • 163
  • 1
  • 5

1 Answers1

4

There is the Android Id:
Generating Device-Specific Serial Number

Note that Android is designed so you can't automatically get a full device id. Android even modified a pre-existing part of linux that would have made this possible.

Even better than Android id: your app can request the AUTHENTICATE_ACCOUNTS permission. Then you know the user's Google id. This will be common across all apps and phones the user uses.

Community
  • 1
  • 1
Brian Attwell
  • 9,239
  • 2
  • 31
  • 26
  • 4
    Neither of those IDs is persistently specific to a device, but the ANDROID_ID is the best option. I like the way iOS has implemented the identifierForVendor as this is a very common use case for developers, and it doesn't identify the device, only the vendor-device combo. – ashishduh Jan 23 '14 at 22:13