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

GloryFish
  • 13,078
  • 16
  • 53
  • 43
0xDE4E15B
  • 1,284
  • 1
  • 11
  • 25
  • Can you elaborate a bit how it's failing? Is there console output? – tmh Jan 07 '11 at 17:11
  • In MatchMakerViewController in the field, where player can invite other player there is silmply written (Invite Failed) – 0xDE4E15B Jan 07 '11 at 17:14
  • 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. – elibud Apr 08 '11 at 19:08
  • Unfortunately, I have only one iPhone, so I did not tested this issue. – 0xDE4E15B Apr 09 '11 at 07:34

2 Answers2

8

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

Josh Kahane
  • 16,765
  • 45
  • 140
  • 253
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)
Erik Asmussen
  • 231
  • 2
  • 5