Local storage
FRVR.localStorage is an async, channel‑agnostic wrapper around whichever storage backend makes sense for the current platform (typically window.localStorage on web, SharedPreferences on Android, NSUserDefaults on iOS).
Use it instead of window.localStorage directly — it works identically across channels and gracefully degrades to an in‑memory store where persistence isn’t available.
Values are strings. Serialize objects yourself:
vs. cloud storage
Section titled “vs. cloud storage”| Use local storage when… | Use cloud storage when… |
|---|---|
| Data is cheap to regenerate | Losing it ruins the player’s progress |
| It’s device‑specific (preferences, cache) | It should follow the player across devices |
| You don’t need auth | The player is logged in |
Local storage: get/set/remove
loading SDK…