简体   繁体   中英

Getting user email from Google Plus authentication, without GET_ACCOUNTS permission

Is it possible to retrieve the user's email address after the user authenticate with their G+ account (Using G+ Android SDK)? I know you can do that if you ask for GET_ACCOUNTS permission, but then I wouldn't need the G+ login...

If all you want is the email address (and not actually do anything with the account), you can use AccountPicker to allow the user to select a Google account.

Note that if there is only one Google account on the device, you get an immediate response back with no intervening dialog.

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