Achievement Unlock (Report Progress)
Goal
Report achievement progress and optionally show the native Achievements UI.
Prerequisite
Make sure the player is authenticated first. Use use-case-1-auth-bootstrap.md for a safe startup flow (don’t rely on GameServicesAuthenticate.successEvent as “authenticated”).
Actions used
GameServicesReportAchievementProgressGameServicesGetReportAchievementProgressError(on failure)GameServicesShowAchievementsUI(optional)
Variables
achievementId(String) e.g."first_victory"percentComplete(Float) 0–100
Flow
When the achievement condition is met, go to
ReportAchievementProgress.State:
ReportAchievementProgressAction:
GameServicesReportAchievementProgressInputs:
achievementId,percentComplete(use100to unlock)Events:
successEvent→ (optional)ShowAchievementsUIor back to gameplayfailureEvent→GetReportAchievementProgressError(log/ignore)
State:
ShowAchievementsUI(optional)Action:
GameServicesShowAchievementsUI
Notes
Incremental achievements: report
25,50, … until100.If the player is not authenticated,
GameServicesReportAchievementProgressfails immediately; decide whether to silently skip or prompt login via your auth bootstrap.
Last updated
Was this helpful?