Game Center InviteFailed

一笑奈何 提交于 2020-01-11 08:50:34

问题


I'm am attempting to send a Game Center invitation. Sending from the simulator to a device or from a device to the simulator results in an InviteFailed error.

What might be the problem? Incorrect implementation? Low Internet speed? Or is it not possible to test Game Center invites with the simulator?

Thanks


回答1:


As far as I am aware you cannot test multiplayer in the simulator. You will need two devices.




回答2:


Even though the invite functionality doesn't work in the simulator, you can still test multiplayer in the simulator using findMatchForRequest (kind of like an auto-match function):

[[GKMatchmaker sharedMatchmaker] findMatchForRequest:request withCompletionHandler:^(GKMatch *match, NSError *error)


来源:https://stackoverflow.com/questions/4628137/game-center-invitefailed

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!