- Home /
Question by
thenamesishan · May 28, 2019 at 03:51 AM ·
google play gamesapi
Social.localUser.Authenticate() is not executed
Hey there!
I wrote this code in order to connect with Google Play Services, after watching some YouTube tutorials.
PlayGamesClientConfiguration config = new PlayGamesClientConfiguration.Builder().Build();
check.text = "initialised";
PlayGamesPlatform.InitializeInstance(config);
check.text = "initialised config created";
PlayGamesPlatform.Activate();
check.text = "initialised config created activated";
Social.Active.localUser.Authenticate((bool success) => {
if (success) check.text = "initialised config created activated logged-in";
else check.text = "initialised config created activated failed";
});
But when I tried to run this on a emulator, this is the result that I got.
I saw some queries in which the authentication fails, but I can't see even that happening here. I tried everything from changing the SHA1 in Google Play Console to changing the API levels.
Still no luck. Please help me out here.,Hey there!
I wrote this code to connect with Google Play Services, after watching some YouTube tutorials.
PlayGamesClientConfiguration config = new PlayGamesClientConfiguration.Builder().Build();
check.text = "initialised";
PlayGamesPlatform.InitializeInstance(config);
check.text = "initialised config created";
PlayGamesPlatform.Activate();
check.text = "initialised config created activated";
Social.Active.localUser.Authenticate((bool success) => {
if (success) check.text = "initialised config created activated logged-in";
else check.text = "initialised config created activated failed";
});
But when I run it on an emulator, only the following takes place.
I tried doing everything I found, changing the SHA1 in Play Console to changing the API levels. Still no luck. Please help me out.
Comment