using android version 6.0, play-games-plugin-for-unity v0.9.38a, unity 5.6.0f3.
Build and run direct from PC to android phone is working. Means my setting in google play console and unity is correct.
But after i remove the apps and download from google play store, the google pay Authentication did not work at all.
I'm so curious why direct from PC works but download from google play store cannot? Anyone have this same problem?
Here is the code.
using GooglePlayGames;
using GooglePlayGames.BasicApi;
.....
void Start () {
// Create client configuration
PlayGamesClientConfiguration config = new
PlayGamesClientConfiguration.Builder()
.Build();
// Enable debugging output (recommended)
PlayGamesPlatform.DebugLogEnabled = true;
// Initialize and activate the platform
PlayGamesPlatform.InitializeInstance(config);
PlayGamesPlatform.Activate();
PlayGamesPlatform.Instance.Authenticate(SignInCallback, false);
}
public void SignInCallback(bool success) {
if (success) {
txtUserName.text = Social.localUser.userName;
isSignIn = true;
txtSignInOut.text = "Sign Out";
btnShowTopScore.SetActive (true);
} else {
txtUserName.text = "";
isSignIn = false;
btnShowTopScore.SetActive (false);
}
}