Game Center Invite
Game Center Invite
- Subject: Game Center Invite
- From: Todd Heberlein <email@hidden>
- Date: Tue, 26 Aug 2014 16:00:10 -0700
I’ve been doing some experiments to invite another player in Game Center on iOS devices, and the invite is failing immediately.
I am using the Apple GKMatchmakerViewController to invite the players. If I choose “Play Now” on both devices, they eventually find each other. If I do “Invite Friend” to invite the other, the invitation immediately fails. I see no indicator on the other device that it received the invitation.
Do both devices have to be on the same Wi-Fi network? My workstation, where I am running the simulator, is *not* on Wi-Fi. My Cell phone (the second device) is either on Wi-Fi or LTE.
In my authentication handler I basically have
else if ([GKLocalPlayer localPlayer].isAuthenticated) {
[[GKLocalPlayer localPlayer] registerListener:self];
}
And I have the invite handlers (stubs of them):
- (void)player:(GKPlayer *)player didAcceptInvite:(GKInvite *)invite
- (void)player:(GKPlayer *)player didRequestMatchWithRecipients:(NSArray *)recipientPlayers
But none of the code is ever called.
I never see a notification, or anything.
Any help as to where I am going wrong would be appreciated.
Thanks,
Todd
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden