Google Play Game Services login issues

Just to be sure, have you guys put in your application id number as documented here:

http://docs.coronalabs.com/daily/plugin/gameNetwork-google/index.html#build.settings?

settings = { android = { googlePlayGamesAppId = "123456789012" -- Your Google Play Games App Id }, plugins = { -- key is the name passed to Lua's 'require()' ["CoronaProvider.gameNetwork.google"] = { -- required publisherId = "com.coronalabs", }, }, }

Here’s mine

    android =

    {

        googlePlayGamesAppId = “962042484436”,

        

        versionCode = “4”,

        

        usesPermissions =

        {

          “android.permission.INTERNET”,

          “com.android.vending.CHECK_LICENSE”,

          “com.android.vending.BILLING”

        }

    },

    

    plugins =

    {

        [“CoronaProvider.gameNetwork.google”] =

        {

            publisherId = “com.coronalabs”

        }

    }

Ok, I had forgotten to add my account to the test accounts.  Now I get EXACTLY the same error as greenrift does:

D/GCM     (  915): GcmService start Intent { act=com.google.android.gms.INITIALIZE flg=0x10 pkg=com.google.android.gms cmp=com.google.android.gms/.gcm.GcmService } com.google.android.gms.INITIALIZE

I/ActivityManager(  537): Displayed com.google.android.gms/.games.ui.signin.SignInActivity: +309ms

D/dalvikvm( 1381): GC_EXPLICIT freed 2521K, 66% free 2597K/7588K, paused 5ms+8ms, total 68ms

E/GameAgent(  989): Unable to retrieve 1P application 962042484436 from network

E/PlayerAgent(  989): Unable to load player 112854740871344749979

D/BaseGameActivity( 2860): onActivityResult, req 1 response 10002

D/BaseGameActivity( 2860): isGooglePlayServicesAvailable returned 0

D/BaseGameActivity( 2860): beginUserInitiatedSignIn: continuing pending sign-in flow.

D/BaseGameActivity( 2860): resolveConnectionResult: trying to resolve result: ConnectionResult{statusCode=SIGN_IN_REQUIRED, resolution=PendingIntent{2b7b9ff0: android.os.BinderProxy@2b8606d8}}

D/BaseGameActivity( 2860): result has resolution. Starting it.

I/ActivityManager(  537): START u0 {cmp=com.google.android.gms/.games.ui.signin.SignInActivity (has extras)} from pid -1

W/libc    ( 2860): pthread_create sched_setscheduler call failed: Operation not permitted

I/OpenAL_SLES( 2860): playback_function started

D/dalvikvm( 2860): GC_FOR_ALLOC freed 176K, 65% free 3120K/8764K, paused 29ms, total 34ms

I/dalvikvm-heap( 2860): Grow heap (frag case) to 4.330MB for 640016-byte allocation

D/dalvikvm( 2860): GC_CONCURRENT freed 50K, 58% free 3725K/8764K, paused 3ms+3ms, total 43ms

D/dalvikvm( 2860): WAIT_FOR_CONCURRENT_GC blocked 7ms

I/dalvikvm-heap( 2860): Grow heap (frag case) to 4.920MB for 640016-byte allocation

D/dalvikvm( 2860): GC_CONCURRENT freed 1279K, 65% free 3102K/8764K, paused 2ms+4ms, total 52ms

D/dalvikvm( 2860): WAIT_FOR_CONCURRENT_GC blocked 11ms

I/dalvikvm-heap( 2860): Grow heap (frag case) to 4.845MB for 1200016-byte allocation

D/dalvikvm( 2860): GC_CONCURRENT freed 17K, 52% free 4256K/8764K, paused 4ms+2ms, total 28ms

D/dalvikvm( 2860): WAIT_FOR_CONCURRENT_GC blocked 16ms

I/dalvikvm-heap( 2860): Grow heap (frag case) to 5.973MB for 1200016-byte allocation

D/dalvikvm( 2860): GC_CONCURRENT freed 2346K, 65% free 3082K/8764K, paused 3ms+4ms, total 36ms

D/dalvikvm( 2860): WAIT_FOR_CONCURRENT_GC blocked 17ms

I/dalvikvm-heap( 2860): Grow heap (frag case) to 4.268MB for 614416-byte allocation

D/dalvikvm( 2860): GC_CONCURRENT freed <1K, 58% free 3682K/8764K, paused 3ms+2ms, total 21ms

D/dalvikvm( 2860): WAIT_FOR_CONCURRENT_GC blocked 13ms

I/dalvikvm-heap( 2860): Grow heap (frag case) to 4.854MB for 614416-byte allocation

I/Corona  ( 2860): Menu: enterScene event

D/dalvikvm( 2860): GC_CONCURRENT freed 1205K, 65% free 3079K/8764K, paused 3ms+2ms, total 60ms

D/dalvikvm( 1492): GC_CONCURRENT freed 1236K, 29% free 6223K/8652K, paused 11ms+18ms, total 99ms

I/ActivityManager(  537): Displayed com.google.android.gms/.games.ui.signin.SignInActivity: +130ms

D/dalvikvm(  989): GC_CONCURRENT freed 475K, 58% free 3200K/7588K, paused 6ms+6ms, total 38ms

E/Volley  (  989): [69] il.a: Unexpected response code 403 for https://www.googleapis.com/games/v1/players/112854740871344749979

E/Volley  (  989): [69] il.a: Unexpected response code 403 for https://www.googleapis.com/games/v1/players/112854740871344749979

E/SignInIntentService(  989): Access Not Configured

E/SignInIntentService(  989): aol

E/SignInIntentService(  989):   at ajy.a(SourceFile:108)

E/SignInIntentService(  989):   at abm.a(SourceFile:213)

E/SignInIntentService(  989):   at abm.a(SourceFile:194)

E/SignInIntentService(  989):   at aav.a(SourceFile:486)

E/SignInIntentService(  989):   at aqu.a(SourceFile:221)

E/SignInIntentService(  989):   at com.google.android.gms.games.service.GamesSignInIntentService.onHandleIntent(SourceFile:343)

E/SignInIntentService(  989):   at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)

E/SignInIntentService(  989):   at android.os.Handler.dispatchMessage(Handler.java:99)

E/SignInIntentService(  989):   at android.os.Looper.loop(Looper.java:137)

E/SignInIntentService(  989):   at android.os.HandlerThread.run(HandlerThread.java:60)

D/dalvikvm(  989): GC_CONCURRENT freed 354K, 57% free 3264K/7588K, paused 3ms+4ms, total 38ms

E/LoadSelfFragment( 6979): Unable to sign in - application does not have a registered client ID

D/dalvikvm(  537): GC_FOR_ALLOC freed 601K, 24% free 8291K/10884K, paused 65ms, total 68ms

D/BaseGameActivity( 2860): onActivityResult, req 1 response 10004

D/BaseGameActivity( 2860): responseCode != RESULT_OK, so not reconnecting.

D/BaseGameActivity( 2860): giveUp: giving up on connection. Status code: 4

D/BaseGameActivity( 2860): ERROR CODE 4: message=There was an issue with sign-in.; details=SIGN_IN_REQUIRED

I guess I’m blind.  How do  you delete things?  I can’t unlink an app.  I can’t delete the game.  I had one that wasn’t finished and I could delete it.  My test app is currently unpublished, I’ve blown away everything on the api site, but I can’t make it go away from the Google Play Games page or unlink my apps.

Am I missing something?

When you click on the linked app, on the bottom of the page theres a button that says “Remove this app”.

Can funkvisions and greenrift try deleting the whole game and try again?  I’ve had this problem before and that solved it.  I know you just tried this funkyvision but you also had the testing account problem which might have messed with the results.

Right… I blew away the entire game and all the stuff in api console.  When I recreated it I forgot to add my test account.  So I did start all over, I just forgot the one step and when I added it I got to the point greenrift did.

Interesting… I just rebuilt using my production keystore instead of debug (after I added another client id for that SHA1 to the api console).  Now I get a “quota exceeded” error… strange… but at least maybe progress.

Hooray! I finally got mine to work.  But only for my production/release key.  I had to go back and make sure I checked “This app is preferred for new installations.” for the entry I was using.  It still seems a little flakey, but I’ll play around with it some more.

I think I got everything working properly.  I just pushed an update of my game to Google Play with the leaderboards enabled. We’ll see how it goes!

I do think there is a bug however if you logout of Google Play from WITHIN the leaderboard window itself.  You can never get  it to show the scores again after that.  Chip Chain has exactly the same problem.  I’ll probably open up a bug on it.

Hi, I am having the same problem and seems you have a solution, my question is what do you mean by  “had to go back and make sure I checked “This app is preferred for new installations.” for the entry I was using.”

  1. "where can I check that?

Hi funkyvision, can u help me about Google Play Game Services sign-in problem. This type of error show on my android device “there was a sign-in issue.” I implement all things correctly in correct place but error not finish. How i remove this error. if u send me ur own sample code of only GPGS whose full fledge functionality and error free…m really thankful to you…

I also check this link but it gives the same error of sign-in problem…

https://github.com/coronalabs/plugins-sample-gameNetwork-google

I had the same error, but got this resolved – at least now I’m logged in to game service, and can see my Leader Board.

I looked at this article, and found my SHA1 certificate fingerprint

https://developers.google.com/games/services/android/troubleshooting

You can find yours with this command:

keytool -exportcert -alias androiddebugkey -keystore debug.keystore -list -v

Just replace “androiddebugkey” and “debug.keystore”  with the name and filename of your keystore.

I then created a new Game Service Entity, and when I got to the SHA signing bit, I entered my SHA1 certificate fingerprint.

You DON’T need to publish the Game Service Entity, before you can test it. As long as your user signed in to the Phone is listed in the TESTING ACCESS area.

HI andershjarnaa ,

                             still i’m facing the same problem sign in error. I make three time keystore and SHA1 but SHA1 not match with package name. when i create SHA1 with this statement it generate error like this

keytool -exportcert -alias mytestapp -keystore mytestapp.keystore -list -v

$$$$$$$$$$$$$$$$$$$$ keytool -exportcert -alias mytestapp -keystore ~/.mytestapp.keystore -list -v

Enter keystore password:  

keytool error: java.lang.Exception: Alias <mytestapp> does not exist

java.lang.Exception: Alias <mytestapp> does not exist

    at sun.security.tools.KeyTool.doPrintEntry(KeyTool.java:1339)

    at sun.security.tools.KeyTool.doCommands(KeyTool.java:869)

    at sun.security.tools.KeyTool.run(KeyTool.java:172)

    at sun.security.tools.KeyTool.main(KeyTool.java:166)

can u help me about this problem…m really thankful to you

Hi corona208, I’m, not an expert in Java and the keytool at all, but it seems like there is a problem with the command you have entered. Are you sure that your certificate is called mytestapp?

Else I would suggest that you try and issue a new certificate from the beginning, and follow the process very carefully.

Have a look at this article to generate the keystore certificate.
http://developer.android.com/tools/publishing/app-signing.html

@corona208, you might want to replace the alias mytestapp with mytestappalias.

Edit:  Actually, try this.

Launch Corona SDK > File > Build and select Android for your app.

It should bring up the popup screen that shows your application name, version code, etc. along with  your Keystore and Key Alias.

It should show mytestapp.keystore as the Keystore and something else for Key Alias.

So, let’s say, your keystore is mytestapp.keystore and Key Alias is mytestappalias, then you change your command line like so:

Wrong one:

keytool -exportcert -alias mytestapp -keystore ~/.mytestapp.keystore -list -v

Right one:

keytool -exportcert -alias mytestappalias -keystore ~/.mytestapp.keystore -list -v

Naomi

Great answers @Naomi and @andershjarnaa

Hi andershjarnaa and Naomi,

I also try the same method as u telling keystore are generate successfully without problem with this command 

I’m on Mac

keytool -genkey -v -keystore testapp.keystore -alias testapp -keyalg RSA -validity 999999

answered all question and then generate keystore but when i am create SHA1 with this command 

keytool -exportcert -alias mytestappalias -keystore ~/.mytestapp.keystore -list -v

it gives error like this “Keystore file does not exist” m also give path within this command like as

keytool -exportcert -alias mytestappalias -keystore ~/.android/debug.keystore -list -v but it gives error

when I generate SHA1 with correct method then i solved all error. due to this error Google Play Game Service gives Sign-in error.

please help me how i remove this error. or tell me how i give the path init.

I read the whole article of GPGS service and implement accordingly to the document but still face the problem X_X :@

M right or not???

Bilal

Hi andershjarnaa and Naomi,

can anyone email me source code of working google play game service in which show leader board and achievements show. m really thankful to you.

email: bluebird786@gmail.com

Bilal