Skip to content

Score (native)

FRVR.score is a thin wrapper for channels that expose a native per‑player “current score” API — primarily Apple Game Center and Google Play Games. If you’re shipping to native mobile, use this in addition to leaderboards to get platform‑native UI (notifications, rankings inside Game Center, etc.).

const accepted = await FRVR.score.setScore(42000);
if (!accepted) {
  // Channel rejected (not signed in, not supported, etc.) — FRVR leaderboards still work.
}

FRVR.score is only present on channels that support it. Guard calls:

if (FRVR.score) await FRVR.score.setScore(42000);

Safe to call alongside FRVR.leaderboards.postScore(...) — they target different backends.