Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between GoogleSignInApi and PLUS API for Android

Hi It is probably a silly question but I just can't find the difference between those two APIs. On seems to do exactly what the other does. I tried reading on the google developer website but It is just confusing.

I want to facilitate log in to my app by using Google+, but I just can't figure out what API should I use. I am only interested on the name of the user. I then create my own user database.

Thanksé


1 Answers

You are referring to the old Google-Sign Methods(before play services 8.3). The best/easiest option now is to try out the new Google-Sign In with play services 8.3. The Google identity platform is completely revamped. It no longer has two separate API's.

Using the Google Sign in Options object you request the user's profile. The default sign in will get you users ID and basic profile. Include additional scopes(drive, google-plus) to GSO object to have more access.

Check out new Google-Sign In.

Also refer these posts from the official android developers blog to get more info.

Android Developers Blog- Identity #1

Android Developers Blog- Identity #2

like image 54
vishnu narayanan Avatar answered Aug 18 '26 14:08

vishnu narayanan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!