Skip to content

Crossplay (Cocos)

crossplay is the “continue on your phone” flow — the game is running in a browser / embedded channel and FRVR knows there’s a richer native app available. You offer the player a button; we hand them off.

if (await FRVRSDK.instance.canMoveToMobile()) {
  showContinueOnMobileButton();
}

Most channels don’t support this — always guard.

await FRVRSDK.instance.moveToMobile();

Must fire from a user gesture (button tap) on browsers. The SDK opens the appropriate app‑store page / deep link; the promise resolves once the player’s been sent.

The natural place to surface this is after a successful session (end‑of‑run screen, between levels) — the player’s invested and more likely to move. Not on a splash / boot screen.

async onRunEnded() {
  if (await FRVRSDK.instance.canMoveToMobile()) {
    this.showContinueOnMobileBanner();
  }
}