Game Center InviteFailed

2019-02-23 10:20发布

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 Invite Failed

2条回答
在下西门庆
2楼-- · 2019-02-23 10:42

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

查看更多
爷的心禁止访问
3楼-- · 2019-02-23 11:02

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)
查看更多
登录 后发表回答