Open sezbladex opened 1 year ago
+1
+1
10.14 is the last version where you can get Login and it's still working at least.
10.14 is the last version where you can get Login and it's still working at least.
u call by social.localuser or what?
test.text = "Name : " + Social.localUser.userName;
test1.text = "ID : " + Social.localUser.id;
because this is what i code when to call username and id, but when typing email not came out
var config = new PlayGamesClientConfiguration.Builder().RequestEmail().Build();
PlayGamesPlatform.InitializeInstance(config);
PlayGamesPlatform.DebugLogEnabled = true;
PlayGamesPlatform.Activate();
PlayGamesPlatform.Instance.Authenticate(SignInInteractivity.CanPromptAlways, status =>
{
var user = (PlayGamesLocalUser) Social.localUser;
var success = status == SignInStatus.Success;
var error = success ? null : $"Authenticate failed ({status}).";
callback(success, error, new SocialUser(user.id, user.Email, user.userName));
});
Thank you for answer
var config = new PlayGamesClientConfiguration.Builder().RequestEmail().Build(); PlayGamesPlatform.InitializeInstance(config); PlayGamesPlatform.DebugLogEnabled = true; PlayGamesPlatform.Activate(); PlayGamesPlatform.Instance.Authenticate(SignInInteractivity.CanPromptAlways, status => { var user = (PlayGamesLocalUser) Social.localUser; var success = status == SignInStatus.Success; var error = success ? null : $"Authenticate failed ({status})."; callback(success, error, new SocialUser(user.id, user.Email, user.userName)); });
Describe the bug I am using Google play games service with Firebase, I try get email it looks empty How can i get authenticated user email ?
Versions
Additional context Add any other context about the problem here.