[Cocoon] Can't login to Google Play Games

0 favourites
  • 8 posts
From the Asset Store
Google Analytics 4 Plugin for Construct 3 enables metrics and analytics for your games easily.
  • Hello, the other day I added support for Play Games Service from Google in my Android app I have in the Play Store, so I could add leaderboards and achievements.

    I downloaded and installed Cocoon's plugins in C2, and I added CocoonAds, CocoonCanvasPlus and CocoonGooglePlayGames in the project.

    In the loading screen I created this action:

    On start of layout + Is Canvas+ = Request login.[/code:14faonb3]
    
    I have another way of login in, via a button on a optios menu, in case the first login failed:
    [code:14faonb3]On tap gesture on button + Is Canvas+ = Request login.[/code:14faonb3]
    
    After that, I exported the project with Cordova, using this options.
    [img="https://i.gyazo.com/2d561c38afedd00a60e99cc2a7842fc9.png"]
    [img="https://i.gyazo.com/737cf99411ec6ac0ea3a97789163673d.png"]
    
    Finally, I upload the zip (without the config.xml and intelxdk.config.additions.xml files, as I saw in a tutorial) and proceed to set up the app information in Cocoon.
    
    [img="https://i.gyazo.com/ea0a047ec6efb47751551e304e87da1e.png"]
    
    Then I add all the plugins I use, and I make sure I add the APP_ID. (censored in pick)
    
    [img="https://i.gyazo.com/6f356159ca435860f16bd5261276fbb7.png"]
    
    I sign the app, and compile it. Then, I upload it to the Play Store as a beta update (I have it enabled in the Games service).
    
    I download th egame from the Play Store, launch it, and when the login stuff starts, it shows me the Connecting screen, and the loading spin.
    [img="http://i.imgur.com/8ysiMSX.jpg"]
    
    Then I get back to the game without the Welcome user! popup and nothing happens, even a little image I added in case the login fails, appears.
    
    Is there something else I need to do? Should I reinstall the plugins, or create another app or game service? It worked the frist time I tried the plugin, but after some time, it stopped working. I even tried uninstalling the game, and deleting the game and Google Play app cache.
    
    Help!
  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Hi,

    I saw your comment on my youtube video.

    Have you setup your Google Play service completely on google play? also have you released the game service?

    Otherwise it won't work.

    You also can add your email to the testers and activate the game service only for beta / alpha testers. Then you do not need to publish the game service first.

    https://shatter-box.com/knowledgebase/c ... eplaygames

    Regards

    Andy

  • Hi,

    I'm a bit late but I have the same problem here. I read and followed the tutorials i saw but i can't find where the error is

    I'm trying to add a leaderboard in my game but i can't even log in (i have the same result than Marxaly). I just see the pop up with the name of my game and "trying to connect" and it disappears from the window...

    My game is in beta phase and i added well the application's ID in the plugin, I have released the game service . And of course i can't open the leaderboard because i'm not logged in.

    Please, i rellay need help

  • Has anyone fixed this issue ?

  • Has anyone fixed this issue ?

    It's been a while since my last built with cocoon. However such issues are mostly caused by a missconfiguration in either Google Play or / and Cocoon / Construct.

    Can you share a capx example showing your leaderboard code? Also did you setup the Google Play Service completely? You need to "bind" the app id to a bundle id. For this you need to assign the Google Play Service to an apk.

    Best

    Andy

  • hey

    thank you for your reply. I will send you my example capx file, although I'm thinking of trying different way of exporting my C2 project(canvas+ is not officially supported.. :/). Do you know which way is currently the best way for C2 Android exporting ?

  • hey

    thank you for your reply. I will send you my example capx file, although I'm thinking of trying different way of exporting my C2 project(canvas+ is not officially supported.. :/). Do you know which way is currently the best way for C2 Android exporting ?

    For construct 2 I always use "Cordova" as exporter. Then I build my game with cocoon.io.

    However cocoon is updating their whole cloud compiler, so it's currently not stable.

    A few friends of mines are using Cordova CLI build, but I have no expierences with it.

    I purchased a c3 license a while ago, therefor I'll focus on the build-in export service for android and ios for my next projects.

    best

    Andy

  • I also purchased C3 => problem solved. Thanks for advice.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)