GKMatchmaker findMatchForRequest invite never received

前端 未结 3 1730
轻奢々
轻奢々 2021-01-19 00:13

I\'m trying to invite nearby players to a match, but the invite is either never sent or never received.

GKMatchMaker startBrowsingForNearbyPlayersWithHandler works

3条回答
  •  北海茫月
    2021-01-19 00:29

    Based on multiple questions here on SO, Game Center seems to be getting stuck from time to time. In the best case, it returns "Game not recognized" errors. In the worst case, it just cheerfully returns nil to GC calls. Sometimes it resumes working on it's own, sometimes it doesn't. But it seems you can kickstart it again by logging into iTunesConnect and do any of the following:

    1. Add a leaderboard
    2. Change the default leaderboard
    3. Add an achievement

    I've added this to my debugging routine. If some aspect of GC stops working, or returns nil, I try making one of the above changes in iTunesConnect before proceeding. In my case, I get the "game not recognized" several times per week, but several others have noted the "nil return values."

提交回复
热议问题