Cocoon GooglePlayGames Login Trigger Problem


#1
  • Cocoon Version:
    2.1.0

  • Basic description of the problem:
    GooglePlayGames Login Triggering in Cocoonsplash Screen. There is no eventsheet it is Cocoon’s Splash screen.

  • Device info:
    NoxApp Android Emulator (Android 5.1)

  • Steps will reproduce the problem:
    1.) I add Login Action for GooglePlayGames
    2.) Action running only when it is in Game Layout.
    3.) But it is triggering two times. (CocoonSplash and Game Layout)

  • Expected result:
    Trigger login one time when go to Game Layout.

  • Error log
    No Error.

  • Webview engine(s):
    Developer App (Canvas+)

  • Used plugins (if relevant):
    Cocoon GooglePlayGames

  • Framework/game engine (if relevant):
    Construct 2



#2

Did you upload the APK to google playstore first.? Because i had the same issue and i solved that by uploading it to the playstore its basically google links your app to google play service and enables the features to your app ID


#3

I did already, signed apk and I add test users.
Just it is happening sometimes. How it is happening in cocoon splash screen, still i don’t understand.


#4

This is what my codes are and they work good


#5

@OhhBaby I am also having the same Issue. Not able to login through googleplaygame or gamecenter.
@maddy467 I followed your events but that doesn’t work.


#6

Please Help us. @andy_reitberger @Blue_Sialia


#7

but this is works very well to me


#8

Your problem not looks like this.
You need add test users in Googleplay console.


#9

Hi,
the Google Play and GameCenter plugins are working well.
Either it’s a wrong code or a miss-configuration.

I can recommend you my template for Game Center and Google Play.
https://www.scirra.com/store/royalty-free-game-templates/game-template-2-leaderboard-538

A documentation can be found here.

Best,
Andy


#10

It is working but I still wondering how this happening? I didn’t tell not work just have this problem, sametimes when I do build apk I see this trigger problem.
"GooglePlayGames Login Triggering in Cocoonsplash Screen."


#11

Thank you for the reply but the plugins were working just perfect in the last build and in new i just replaced few images and boom they are not working any more. I tested google play and game center both were awesome before but after rebuilding the new app they just can’t login and i have not touched any coding.


#12

Hello guys thanks for all your help. Turns out that my firebase was not linked properly so I got it solved by linking the firebase and rechecking the ID’s and matching them


#13

Have you any “Login” actions in your loader event sheet or in your first event sheet which gets called on game start?
As long as you do not call the “Login” action it should not login automatically.
You can try to just add the Google Play Games plugin to an empty project and build it. If it logs in even without any code, then there is a problem in the plugin code itself.

Can you try this?
Thanks!