Game Center seems to have stopped working with watchOS 9. I've received support emails from users who have upgraded and can no longer see their score. I have also confirmed on my own Watch.
I call this function in the ContentView using onAppear on my main view.
public func authenticatePlayerWatch() {
GKLocalPlayer.local.authenticateHandler = { error in
if GKLocalPlayer.local.isAuthenticated {
self.gameCenterEnabled = true
} else {
print(error?.localizedDescription ?? "Unknown error")
}
print(">>>> -- GKLocalPlayer.local.isAuthenticated = \(GKLocalPlayer.local.isAuthenticated)")
}
}
But GKLocalPlayer.local.isAuthenticated is always false. It used to work on Watch (though intermittently) but now doesn't work at all. The iOS implementation works fine.
Anyone else have this issue and perhaps found a way to make it work on watchOS?