Jump to content

Leaderboards with cocoonjs and google game services


nunorfpt
 Share

Recommended Posts

I´m trying to insert leaderboards in my Phaser game, using cocoonjs Social Extensions.

 

I'm using this code to login and get the leaderboar:

var gp = CocoonJS.Social.GooglePlayGames;socialService = gp.getSocialInterface();socialService.setTemplates("templates/leaderboards.html", "templates/achievements.html");socialService.onLoginStatusChanged.addEventListener(function(loggedIn, error){    if (loggedIn) {        socialService.showLeaderboard({leaderboardID:"123456789"}, function(error){        if (error)             console.error("showLeaderbord error: " + error.message);        });    }});

In the Custom Cocoon Launcher tester, it logs in correctly but it doesn't show the leaderboard, already configured in google games services.

 

Has anyone applied the cocoon social extensions to google play leaderboards that could help?

 

Link to comment
Share on other sites

  • 2 months later...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...