Daniele B
Daniele B

Reputation: 20412

Android: unique id for the same user on all devices

Is there an unique value to identify the same Android user on different devices?

ANDROID_ID is a value which identifies the device

but what about a value to identify the user?

if you request the GET_ACCOUNTS permission in your app, you are able to access the email address of the user, but that requires your app to ask the user to grant such permission, which is not very pleasant

Anyone is aware of an unique id that an user keeps on all devices where he uses the same Google account?

Upvotes: 2

Views: 373

Answers (1)

greywolf82
greywolf82

Reputation: 22173

You could use the AccountPicker to get the user account without using additional permission. In this way you have to show to the user a dialog to select the account. Here the docs

Upvotes: 1

Related Questions