I’d like to access the user’s Google account user_id for authentication, but I don’t see any mention of this in the AccountManager.
How can my app request the user_id?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Now that Google Play Services is available, you can use it to request the user’s permission to access the
https://www.googleapis.com/auth/userinfo.profilescope and, with the resulting access token, make a request tohttps://www.googleapis.com/oauth2/v1/userinfo?access_token={accessToken}to get their user ID.