Unity: Apple Game Center iOS7 Registers the Scores for Only 30 Minutes in the Leaderboard

Game Center bugs

It was fixed by Apple.

See this thread: https://devforums.apple.com/message/1028533#1028533

GameCenter scores are not being posted to the leaderboard

I had the same problem - submitting scores to Game Center by using a new GameKit API available from iOS 14 was never actually saved on the Game Center side (even though there was no any error reported).

Solution which worked for me in the end was simply using a Type Method (with my leaderboardID):

class func submitScore(_ score: Int, 
context: Int,
player: GKPlayer,
leaderboardIDs: [String],
completionHandler: @escaping (Error?) -> Void)

instead of the Instance Method counterpart (which apparently has some bug on Apple side):

func submitScore(_ score: Int, 
context: Int,
player: GKPlayer,
completionHandler: @escaping (Error?) -> Void)

I was going crazy over this, so I hope this helps someone else.

Update in realtime

You can start with Angularjs and Firebase database. Firebase



Related Topics



Leave a reply



Submit