Search code examples
androidoauthgoogle-play-games

Google Game Services OAuth key for production


I've added Google game services inside application (Leaderboard, achievements). Everything works fine in debug.. on my machine.........

OAuth Client Id (for debug) in https://cloud.google.com/console looks like 6666666.apps.googleusercontent.com

I try to generate new OAuth Client (for production, with release key)... and .... google generates an Client with a name like '6666666-somenoise.apps.googleusercontent.com' ... and this doesn't work! It always says "Application missconfiguration" .. but everything is correct APP_ID, SHA1 & package name.

Google game services troubleshooting documentation is useless.

I made a test application again.. and it works (Client ID is generated like in example above.. without that noise)...

So. of course I can remove my current project.. and create again..with release key config by default.. but that's not a way! We have 100 achievements added in that project.. with all translations (in many languages).... and google of course doesn't allow to Export/Import them :(


Solution

  • Finally the issue was fixed by an unknown miracle.

    How to fix:

    1. Remove any Client ID created in cloud.gogle.com.
    2. Remove Linked Apps from your game in 'game services'. (play.google.com/apps/publish)
    3. go to smoke ... 2-3 hours.. maybe more... let google remove that IDs (I guess they mark them as deleted.. and if you try to create a new one.. they'll reuse the delete keys)
    4. Go to game services Linked Apps (play.google.com/apps/publish)
    5. Add a new Linked app for ex 'My Game Debug' ... then press "Authorize" ... the key created here will work
    6. Add a new Linked app for ex 'My Game Release' ... then press "Authorize" .. the key created here will work.