Game Leaderboard
For service introduction and console setup instructions, Introduction documentplease refer to.
The game leaderboard is a feature that aggregates users' game scores and lets them check rankings. It connects through the following two functions.
Submit score: Record the score on the leaderboard after the game ends →
submitGameCenterLeaderBoardScoreOpen leaderboard: Call the leaderboard WebView so users can check their ranking →
openGameCenterLeaderboard
1. Submit scores to the game leaderboard
SDK function: submitGameCenterLeaderBoardScore
submitGameCenterLeaderBoardScoreis A function that submits the user's score to the leaderboard when the game ends. The submitted score will be shown to the user later on the leaderboard screen.
Signature
function submitGameCenterLeaderBoardScore(params: {
score: string;
}): Promise<SubmitGameCenterLeaderBoardScoreResponse | undefined>;Parameters
params.score · Required ·
stringThis is the game score to submit. You must pass a floating-point number as a string.
"123.45"or"9999"Please submit it.
Return value
Promise<SubmitGameCenterLeaderBoardScoreResponse | undefined>It returns the score submission result. If the app version is lower than the minimum supported version, it does nothing and
undefinedis returned.
Example: Submitting game scores to the Toss Game Center leaderboard
Try the sample app
apps-in-toss-examples from the repository with-game Download the code, or scan the QR code below to try it yourself.
QR code link: intoss://with-game
2. Open the game leaderboard
SDK function: openGameCenterLeaderboard
openGameCenterLeaderboard This function opens the leaderboard WebView so users can check their ranking. You can add friends or share scores with friends.
Signature
Return value
It opens the leaderboard WebView. If the app version is lower than the minimum supported version (5.221.0), it does nothing and
undefinedreturns it. (However, users below the minimum supported version cannot launch the game.)
Example: Opening the leaderboard WebView
Try the sample app
apps-in-toss-examples from the repository with-game Download the code, or scan the QR code below to try it yourself.
QR code link: intoss://with-game
Sandbox test
You can also test the leaderboard feature in the sandbox environment. Scores recorded in the sandbox will not be reflected in the production leaderboard.
Please check the minimum supported version of the sandbox app.
iOS: 2025-12-07
Android: 2025-12-16
Notes
The game leaderboard feature can only be used in game-category mini-apps. If you call it in a non-game mini-app, it will not work properly.
Submitting score (
submitGameCenterLeaderBoardScore) and opening the leaderboard (openGameCenterLeaderboard) are independent APIs.You can open the leaderboard even without submitting a score, and submitting a score does not automatically open the leaderboard.
Scores must be submitted as numbers in string form, and the server does not provide separate score validation logic. Please handle score calculation and validation directly in your game logic.
The leaderboard UI and data are managed by Toss Game Center, and you cannot directly modify or delete individual items through the SDK.
Frequently asked questions
Last updated
Was this helpful?