Cloud storage (Cocos)
Cloud storage is keyed off the player’s FRVR auth session — it follows them across devices, browsers, and channels.
Same API shape as local storage, different persistence layer.
Single item
Section titled “Single item”Values are JSON‑serializable — the wrapper handles serialization.
”Missing” ≠ “new player”
Section titled “”Missing” ≠ “new player””A missing cloud value can mean:
- A genuinely new player
- Auth hasn’t resolved yet this session
- A transient network blip
If you’re about to write a fresh save because you read nothing, debounce — read again after a short delay or after auth resolves, and only treat empty as “new” once you’re confident auth is ready.
When to use local vs. cloud
Section titled “When to use local vs. cloud”See Local storage § When to use local vs. cloud.
Related
Section titled “Related”- Public cross‑player data (leaderboard snippets, shared state), quota notes: Web SDK cloud storage.