在Cocos2d-x Android上提交分数后,Google Game Service排行榜无法显示吗? [英] Google Game Service Leaderboard can't show after submit score on Cocos2d-x Android?

查看:41
本文介绍了在Cocos2d-x Android上提交分数后,Google Game Service排行榜无法显示吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通过声纳系统团队的Cocos Helper实现了适用于Android的Google游戏服务(Cocos2d-x).

I implement Google Game Service for Android (Cocos2d-x) with Cocos Helper of Sonar System Team.

一切都很好:

  1. 登录Google游戏服务.
  2. 显示成就和increateAchievement很好.
  3. 我第一次登录Google游戏服务==>显示排行榜可以.

但是,我将分数提交到排行榜,然后再次显示排行榜,它总是自动关闭,并且我得到 respondCode = RESULT_RECONNECT_REQUIRED .

However, I submit score to leaderboard then re-show leaderboard again it always close automatic and I get respondCode=RESULT_RECONNECT_REQUIRED.

您能给我一些建议来解决它吗?

Can you give me some suggestion to fix it ?

推荐答案

我找到了答案:问题的原因是OAuth2客户端ID表单游戏服务控制台==> ==>链接应用与OAuth2客户端ID不同,该API是在API管理器中创建的:

I've found answer: Reason of issue is OAuth2 Client ID form Game Services Console ==> ==> Link apps didn't equal with OAuth2 Client ID, be created at API Manager:

因此,要解决此问题,必须在Google Service Console中创建新的Link Apps.==>这将在服务器上解决,排行榜将正常运行.

So to fix that, you must create new Link Apps in Google Service Console. ==> That will fix on server and leaderboard will working OK .

这篇关于在Cocos2d-x Android上提交分数后,Google Game Service排行榜无法显示吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆