MrStahlfelge / gdx-gamesvcs

Easy integration of gameservices in your libGDX game: Google Play Games, Apple Game Center, Amazon GameCircle and more
Apache License 2.0
113 stars 20 forks source link

Exception in thread "LWJGL Application" com.badlogic.gdx.utils.GdxRuntimeException: com.fasterxml.jackson.core.JsonParseException: Unrecognized token 'fewZBzlAIBvWOuukVqyWKzOi' #30

Closed shatterblast closed 5 years ago

shatterblast commented 5 years ago

I have a problem with this branch: https://github.com/MrStahlfelge/gdx-gamesvcs-app/tree/feature/gpgs

I bring it up, because it is based off this repository. I can not seem to feed the "Client ID" to the "gpgs" version of a Desktop build. It only feeds the "secret". Here is my shortened version: https://github.com/shatterblast/gdx-gamesvcs-app/tree/feature/gpgs

Thank you for your efforts!

shatterblast commented 5 years ago

I am troubleshooting a possible error of mine. This seems to be my mistake: https://github.com/MrStahlfelge/gdx-gamesvcs/blob/master/desktop-gpgs/src/de/golfgl/gdxgamesvcs/GpgsClient.java#L179-L192

Edit: I needed to put the following into the _gpgs-clientsecret.json file in the "../android/assets/" folder:

{
  "installed": {
      "client_id": "792636176215-u5hhhqgscjr83am0s68k8rsb743skd78.apps.googleusercontent.com",
      "client_secret": "fewZBzlAIBvWOuukVqyWKzOi"
  }
}

I think it would immensely help others to add a bit of clarity to the following file: https://github.com/MrStahlfelge/gdx-gamesvcs-app/blob/feature/gpgs/android/assets/gpgs-client_secret.json

Thanks again for your hard work! (The credentials I posted here will be removed soon as of this posting.)