Game Center InviteFailed
Asked Answered
P

2

5

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

Prolific answered 7/1, 2011 at 17:5 Comment(4)
Can you elaborate a bit how it's failing? Is there console output?Berthaberthe
In MatchMakerViewController in the field, where player can invite other player there is silmply written (Invite Failed)Prolific
Were you able to test invites on a dev enviroment (Sandbox) with two devices? I know it doesn't work on the simulator, but it's not working for me on the devices either.Evaporation
Unfortunately, I have only one iPhone, so I did not tested this issue.Prolific
C
8

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

Clemens answered 7/1, 2011 at 17:50 Comment(0)
Z
7

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)
Zendah answered 22/3, 2011 at 21:35 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.