I have a view that lists all available matches for a local player (which was registered as the listener). The problem I have is that I want my list to update when the player receives an invitation for a new match.
I tried implementing:
func player(_ player: GKPlayer, didAccept invite: GKInvite) {
}
func player(_ player: GKPlayer, didRequestMatchWithOtherPlayers playersToInvite: [GKPlayer]) {
}
But those methods never get called.
I do get notification of other events, such as turnBasedMatchmakerViewController(_ viewController: GKTurnBasedMatchmakerViewController, didFind match: GKTurnBasedMatch)
and player(_ player: GKPlayer, receivedTurnEventFor match: GKTurnBasedMatch, didBecomeActive: Bool)
Also, I do get the banner from Game Center at the top of the screen, and if I tap it, it does register the turn event, but it just won't detect when an invite is received.
Any suggestions?