Gamecenter ios 9 GameCenter GKLocalPlayerListener methods not called

后端 未结 4 619
半阙折子戏
半阙折子戏 2020-12-06 08:05

This is about GameCenter.

Since \"the GKLocalPlayerListener protocol inherits the methods from GKChallengeListener, GKI

4条回答
  •  再見小時候
    2020-12-06 08:45

    Ok, your list and explanation of the various methods got me thinking. First of all. The problem of getting no notification when a match is received is one of the most pressing problems for me since if you don't get notified it means that you will need to pull to data. So, when do you load the matches again? Every x seconds or every time the view controller with the list of games appears? Both will be issuing unnecessary network calls that will be annoying and also since the list of games may need to be reloaded, without any actual change, it might not look good as well. So at first I was thinking of using exchanges so that the opponent may get notified and reload the games. However, reading your post I remembered about player receives a reminder (UNTESTED) that called the receivedTurnEventForMatch. Now, I managed to get the opponent notified of the new game by initializing the new game, taking a turn, and then sending a reminder.

    I've updated my TurnBasedSkeleton project.

提交回复
热议问题