Search code examples
androidgoogle-playgoogle-play-gamesandroid-googleapiclient

Android Google Play Games Services


Trying to integrate google play games leaderboard in an android application.

Google API client get connected successfully. I am getting result code as -1 which is nothing but RESULT_OK.

But when I call google leaderboard api using leaderboard intent in my on activity result I get 10001 which stands for inconsistent state which is RESULT_RECONNECT_REQUIRED. Even though before calling the intent i am checking is the google api client is connected or not. Which returns true each and every time.

Not able to understand what might be causing this issue.


Solution

  • The reason you might get that code is because app is not linked. So on play games developer console linked my application and it started to work.