2

Hello all i am using google sign-in integration in my android app and everything is working fine but actually i also want to get user date of birth and his gender now does google provide this, if google provides this then what should i define in scopes inside my googleapiclient builder.My code for getting default-sign-in information is given below please tell me where should i use above two scopes to fetch them from api.

GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)
            .requestEmail()
            .build();
    mGoogleApiClient = new GoogleApiClient.Builder(this)
            .enableAutoManage(this /* FragmentActivity */, this /* OnConnectionFailedListener */)
            .addApi(Auth.GOOGLE_SIGN_IN_API, gso)
            .build();
aman verma
  • 732
  • 1
  • 8
  • 26

0 Answers0