Can not loging to GPGC

Of course I did that first (the simple unzip) and I did not find an “appID” or “APP_ID” – which was why I went to the next logical extra step of trying to look in the entire file with apktool. You hadn’t mentioned to only look in the ASCII portion of the file. :slight_smile:

It is not in the ASCII portion of the file.

I just installed a game of mine that uses GPGS on an Android tablet and it logged in to GPGS without issue.

I’m using 2830.

Here is the relevant portions of my build.settings:

 android = { googlePlayGamesAppId = "123456789012345", largeHeap = true, androidPermissions = { "android.permission.VIBRATE", "android.permission.INTERNET" }, }, plugins = { ["CoronaProvider.gameNetwork.google"] = { -- required publisherId = "com.coronalabs", supportedPlatforms = { android=true }, }, ["CoronaProvider.gameNetwork.apple"] = { publisherId = "com.coronalabs", supportedPlatforms = { iphone=true, ["iphone-sim"]=true }, }, ["plugin.google.play.services"] = { publisherId = "com.coronalabs", supportedPlatforms = { android = true, iphone = true }, }, }, 

and the relevant portions of my main.lua:

local function gpInitCallback(event) print("gp call back") if event.isError then app.isConnected = false else print("Need to login") gameNetwork.request( "login", { userInitiated=true, listener=gcLoginCallback }) end print("done with gp callback") end local function authorize() print("\*\*\* connecting to game center.") if device.isGoogle then gameNetwork.init("google", gpInitCallback) elseif device.is\_iOS then gameNetwork.init("gamecenter", gcLoginCallback) end end

Now my app is Live in the store, has been for a long time. I’ve not made any changes to any of this other than prettying up the spacing in my build.settings before posting it here.

Rob

I just looked at the bug submission and I do see one thing different. I’m using:

googlePlayGamesAppId

You’re using

googlePlayGamesAppI_D_

Try changing the last “d” to lower case and give it a try.

Rob

Thanks Rob.

That was it. Not the first time I have done something stupid. :slight_smile: Thanks for your time and help. Really appreciate it.

Steve

Hi Rob,

I conducted several tests for the last days and this is the result of my tests :

  1. If I am testing my application by building the application in debug mode (debug.keystore) all working well. I can login the to the leaderboard and can update/show the leaderboard (so I assume that the code I wrote is OK) BUT

  2. If I am building the application in release mode and running testing on the device I cannot login to the leaderboard (as mention above). Note that I have uploaded the APK to Alpha on google site and define myself as a tester on the device (Yes, I am login as tester to the GPGC on the device) - (Also as general observation, I have also including in my Application in-App purchase and when testing these products - All working well) 

What can be wrong - Why on debug mode is working and release mode it doesn’t.

Tnx

Yuval

Are you logged into your device with the same account that is used for your developer portal?

Rob

Hi,

I am not logged into the device as the developer but as a testers (as define google google console center) - Just to make sure I have reset my device and create it with only one user (as tester).

After reading some in Google I notice for one issue that might be the case for the issue (?).

In the  “LINKED APPS” should I have 2 entries ? one for debug mode and another for relase mode ?

Currently I have one “LINKED APPS” that created with SHA1 = Frrom debug. Should I create new one with SHA1 = From release ?

Yuval