How to get GoogleSignInAccount object when signing in with Google Play Games Services V2

Viewed 24

I'm building an android game with java and I'm adding logging in my users with Google Play Games Services V2 and Firebase.

I have no problem integrating the code from the Play Games website (https://developers.google.com/games/services/android/signin#migrate_to_play_games_services_sign_in_v2) but when it comes to Firebases website (https://firebase.google.com/docs/auth/android/play-games) I'm stuck.

There is a crucial method firebaseAuthWithPlayGames() and it requires GoogleSignInAccount object but I don't know how to get it.

Thanks!

0 Answers
Related