player(_:hasConflictingSavedGames:)
Chooses the correct game data from the saved games that contain conflicts.
Declaration
optional func player(_ player: GKPlayer, hasConflictingSavedGames savedGames: [GKSavedGame])Parameters
- player:
The player who saves the game data.
- savedGames:
The saved games that contain the conflicts.
Mentioned in
Discussion
Saved game files conflict when multiple devices write to the same file while one or more of the devices are offline. Implement this method to choose the game data that’s correct and try saving it again using the resolveConflictingSavedGames(_:with:completionHandler:) method.