- Android:
- Sign in with Google (using
requestServerAuthCode
with the correctrequestScopes
) - Handle result, send
serverAuthCode
to server - Server:
- Exchange
serverAuthCode
foraccess_token
- Use
access_token
to access required Google APIs
- Need to setup both Android Client (with your keystore SHA-1), and Web client, and use Web client ID in the app
- Make sure app is signed using the debug key
- Device has to be signed into Google account (especially emulator)
- During early development if app isn't published - signed in account has to be the same one as the API keys owner account