By the way, the first time I beat the game, my score didn't end up on the leaderboard for some reason. (I don't know if the issue was on my side, because this happened with another game as well.) It worked the second time though.
When I was testing my game, I found that sometimes the score submit request returns an error code, so I implemented a retry mechanism. It still might be an issue with my network of course.