Reputation: 1209
I added achievements to my game. Problems: If I get an achievement it works (it shows +0 XP ) but reset. So it looks like server ignore it. In Google API Console I see many errors:
I found report "errors by method". It is too big, so it looks like:
But how I can use it? I checked troubleshooting and find nothing to help.
GoogleSignInApi is works. Code after sign in:
GamesClient gc = Games.getGamesClient( activity, GoogleSignIn.getLastSignedInAccount( activity ) );
gc.setViewForPopups( activity.findViewById(R.id.root) );
gc.setGravityForPopups( Gravity.TOP | Gravity.CENTER_HORIZONTAL );
//achievements
AchievementsClient ac = Games.getAchievementsClient( activity, GoogleSignIn.getLastSignedInAccount( activity ) );
ac.unlockImmediate( activity.getString(R.string.achievement_first ) );
Upvotes: 0
Views: 112
Reputation: 1209
I fixed it. Problem: I created in Google API Console two auth2 keys: debug and next release. It was working for debug only but you can log in. If you delete the second key you can not edit the first, so I recreate whole game. There is no information in documentation and you can add two or more keys.
Upvotes: 1