如何解决游戏中心邀请好友的问题? [英] How to solve inviting friend over game center?

查看:123
本文介绍了如何解决游戏中心邀请好友的问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在通过游戏中心从事多人游戏,但遇到一个问题.当我尝试邀请我的一位朋友时,我的状态失败.我已经尝试过使用模拟器和iphone以及两个iphone,并且始终存在相同的问题.

I am working on a multiplayer game through game center and I am having one problem. When I try to invite one of my friends I get failed status. I have tried with simulator and iphone and with two iphones and always the same problem.

我已经找到问题的解决方案,发现有很多开发人员都遇到了这个问题.我正在使用iOS 6,并且应用仍在生产中,因此它在沙箱中.

I have searched a solution for my problem and found out that there are many developers with this problem. I am using iOS 6 and app is still in production so it is in sandbox.

我使用的代码与Ray Wenderlich教程-CatRace上的代码相同(有人写过这个问题,但没有人发布解决方案.

I am using same code like is on Ray Wenderlich tutorial - CatRace (there have too people writen about this problem but nobody has post a solution.

有人知道如何解决这个问题吗?

Does anybody know how to solve that problem?

推荐答案

请检查以下内容:

1>您只需在本地播放器通过身份验证后就设置了邀请处理程序.
2>您尝试邀请的玩家确实在其帐户设置中允许了游戏邀请.如果您有两个测试帐户,则可能会忘记为两个帐户都不允许使用.在这种情况下,邀请的推送通知甚至都不会发送给其他玩家.
3>请勿使用相同的游戏中心帐户进行测试.

1> You set inviteHandler just after the local player has authenticated.
2> The player you're trying to invite did allow game invites in their account settings. In case you had two test accounts, you could forget you disallowed it for both of them. In such case the push notification for invite won't even be sent to the other player.
3> Do not use same game center account for testing.

这篇关于如何解决游戏中心邀请好友的问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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