问题描述
我通过声纳系统团队的Cocos Helper实现了适用于Android的Google游戏服务(Cocos2d-x).
I implement Google Game Service for Android (Cocos2d-x) with Cocos Helper of Sonar System Team.
一切都很好:
- 登录Google游戏服务.
- 显示成就和increateAchievement很好.
- 我第一次登录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排行榜无法显示吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!