Hi everybody.
I’m facing a problem that is making me crazy, maybe someone can help me.
The problem is with the gpgs.login function: if I install the game apk on my phone it works good, if I upload the exact same apk on google play (no matter if as open beta or close alpha) and install it, it stop working.
What happens is, the game shows the google play games panel as if it wanted to ask to choose an account, and then the panel just disappear and the login fails.
The error message it receive (event.errorMessage, as in the documentation) is “sign in failed” (code = 10002).
It’s really driving me crazy, because it’s the very same apk that works when installed from PC, with the same keystore, the same app id…
I thought of some possible cause:
1-User permission: but the app installed from the apk has the same permission and it works! Anyway the permission the game require are:
“android.permission.INTERNET”,
“com.android.vending.CHECK_LICENSE”,
“android.permission.GET_ACCOUNTS”,
“android.permission.ACCESS_NETWORK_STATE”,
“android.permission.ACCESS_COARSE_LOCATION”,
“android.permission.WRITE_EXTERNAL_STORAGE”
2-Maybe I’m doing something wrong with the api management, but as required in the documentation I did enable Drive API and Google Play Developer API!
3-Something else??