- Home /
Problem is not reproducible or outdated
(Crash) on calling Google Authentication
using UnityEngine.SocialPlatforms;
void Authentication() {
Social.localUser.Authenticate((bool success) => {
if (success)
{
Debug.Log("You've successfully logged in.");
}
else
{
Debug.Log("Login failed for some reason.");
}
});
}
Adding the authentication into OnStart it crashes my application. I've loaded Social plugin to Unity.
[Play Games Plugin DLL] 04/10/15 18:33:39 +03:00 DEBUG: Activating PlayGamesPlatform. [Play Games Plugin DLL] 04/10/15 18:33:39 +03:00 DEBUG: PlayGamesPlatform activated: GooglePlayGames.PlayGamesPlatform
Calling Authentication onStart just crashes the application. I would like to move into new project, but kinda getting fkup about this hassle. I just wanted to try authentication first instead of showing anything about leaderboard to see if I'm done everything right.
I am also facing same problem, anybody find solution?
Answer by hexagonius · Jan 16, 2016 at 02:43 PM
Work your way through the instructions on this page:
https://github.com/playgameservices/play-games-plugin-for-unity
In your case it could be, that you just need to call the following prior to running the Authenticate command:
PlayGamesPlatform.Activate();
Answer by DeathApocalypse · Feb 21, 2017 at 02:27 PM
same problem. crash when trying to call for Google Authentication... followed everything step by step. cant find the error in adb log file..