I am making a turn-based game using Game-Turn Turn-Based Gaming functionality. I use the simulator and my iPhone to check for event change notifications. The results are very inconsistent. In approximately 75% of cases, when I make the transition to the simulator and go through the queue, I do not receive any notifications on my iPhone. This function does not seem to be called:
handleTurnEventForMatch:didBecomeActive:
I installed GKEventHandlerDelegate in code that authenticates the local user and seems to be installed correctly. The fact that I receive notifications from time to time suggests that this is not a problem.
Does anyone know what could be the problem here? Maybe this is a problem with Sandbox Game Center Server? Do they limit the number of notifications you can send in a short amount of time or something like that?
Edit: I just found several reports that people are having the same problem but no solution. However, very recent posts. Any updates?
Edit2: I also found that after the transition, when I open the GKTurnBasedMatchmakerViewController on another device, it still says that it is the turn of the other player. When I close and open again, the information is correct. In addition, when I open the game GKTurnBasedMatchmakerViewController, when it still displays incorrect information, it gives me the correct object to match the updated information. Could this be related in any way?
source
share