Environments
FRVR.init() takes an environment argument:
What each mode changes
Section titled “What each mode changes”| Mode | Console logging | Backends | Default ads | Safety |
|---|---|---|---|---|
dev | Verbose, color‑coded warnings | Staging / mocked | Test providers auto‑wired | Looser |
beta | Verbose | Staging | Real providers | Loose |
prod | Muted (unless you set FRVR.logger = console) | Production | Real providers | Strict |
A warning banner logs in your browser console whenever you run anything other than prod, so you don’t forget to flip it.
Picking backends explicitly
Section titled “Picking backends explicitly”Some modules accept an explicit backend URL that overrides whatever env would pick:
Forcing verbose logs in prod
Section titled “Forcing verbose logs in prod”Set a logger before init():
Useful for debugging a production build in the field. Remove before shipping.
Dev channel
Section titled “Dev channel”During local development, the easiest setup is the frvr-channel-dev bundle — it stubs ads, IAP, and other platform‑specific bits so you can click through flows without a live provider:
Ship with a real channel bundle (frvr-channel-web, -facebook-instant, -ios, …) — never the dev one.