Is there an equivalent to iOS' identifierForVendor for android?

末鹿安然 提交于 2019-12-10 12:34:15

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/14657977/is-there-an-equivalent-to-ios-identifierforvendor-for-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!