简体   繁体   中英

Is there an equivalent to iOS' identifierForVendor for android?

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM