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 protected])
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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]