Quantcast
Channel: Community | MonoGame - Latest topics
Viewing all articles
Browse latest Browse all 6821

Google Sign-In in monogame

$
0
0

@mpeg88 wrote:

Hi. Does anyone know how to implement the Google Services (games) sign in procedure pattern? I have googled it for days and found no solid code. I have only scrape of the code below:

`GoogleSignInOptions mGoogleSignInClient = new GoogleSignInOptions.Builder(GoogleSignInOptions.DefaultGamesSignIn).RequestEmail().Build();

            var mGoogleApiClient = new GoogleApiClient.Builder(Application.Context)
            .AddConnectionCallbacks(MainActivity)
            .AddOnConnectionFailedListener(MainActivity)
            .AddApi(GamesClass.API).AddScope(GamesClass.ScopeGames)
            .Build();`

I know I need to execute this now:
var signInIntent = GoogleSignInApi.GetSignInIntent(mGoogleApiClient);
StartActivityForResult(signInIntent, RC_SIGN_IN);

Hovewer 'GoogleSignInApi.GetSignInIntent' is unknown to the framework :((

Anyone ?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 6821

Trending Articles