New Google Play 8.3 services SignInButton disrupted ability to receive Birthday and first / last name

With the release of 8.3 update, it seems that

Person class ( https://developers.google.com/android/reference/com/google/android/gms/plus/model/people/Person.html )

which we used earlier is replaced by

GoogleSignInAccount Class ( https://developers.google.com/android/reference/com/google/android/gms/auth/api/signin/GoogleSignInAccount )

Both seem to be similar, we can still get the Display Name (getDisplayname () method) to greet and configure the application, but the getName () and hasBirthday functions are missing.

Something that is needed in the application to fill out the register form automatically.

Is this information (birthday and first / last name) completely missing in the new API, or is there a workaround?

Thanks.

+4
source share
1 answer

The Person’s resource now seems to be part of the Google+ API plus.model.people API , so in order to get social, you’ll need to use Google+ Sign In .addApi(Plus.API)in GoogleApiClient.builder too.

Simple GoogleSignInAccountcontains only basic account information, and if you request social areas, you need to enable the red G + button (additional information here ).

+1
source

Source: https://habr.com/ru/post/1614723/


All Articles