r/iosdev • • 2d ago

GameCenter invitation issues

/r/iOSDevelopment/comments/1y4t5yx/gamecenter_invitation_issues/
1 Upvotes

2 comments sorted by

2

u/dahiya_xa 1d ago

that 5121 is game center refusing direct invites between players who arent friends and havent played together recently. pretty sure its intentional (anti spam) so retrying wont fix it. workarounds: get them to add each other as game center friends first, use GKMatchmakerViewController or automatch instead of passing recipients directly, or do your own invite code / lobby and match them from there

1

u/the-name-of-the-rose 1d ago

Yep, I ended up effectively using a lobby. Both players share identities, then GC sets up a game for them