Last updated
Report a score and optionally open the native Leaderboard UI.
Make sure the player is authenticated first. Use use-case-1-auth-bootstrap.md for a safe startup flow.
GameServicesReportScore
GameServicesGetReportScoreSuccessResult (on success)
GameServicesGetReportScoreError (on failure)
GameServicesShowLeaderboardUI (optional)
leaderboardId (String) e.g. "top_scores"
scoreValue (Int)
When the match ends (or on a milestone), store the score in scoreValue.
State: ReportScore
Action: GameServicesReportScore
Inputs: leaderboardId, scoreValue (and optional tag)
Events:
successEvent → GetReportScoreSuccessResult → (optional) ShowLeaderboardUI
failureEvent → GetReportScoreError (log/ignore)
State: ShowLeaderboardUI (optional)
Action: GameServicesShowLeaderboardUI
Input: leaderboardId (to open a specific board)
GameServicesReportScore waits for completion. Use the extractor actions immediately after its successEvent/failureEvent.
Some platforms keep only the best score; submitting a lower score may not change ranking.
Last updated