Skip to main content
These docs describe the latest release, v0.4.0. Pin an exact version, and read every entry between your version and the latest before you upgrade. Before 1.0, a minor release may break source; its entry carries an upgrade note when it does.
Upgrade noteBreaking changesFeatures
2026-11-11

Upgrading to 0.4

Before you upgrade, search your project for GetDecision and for payload reads with ?? .
  • Replace d?.GetInt(key, value) ?? value with d.GetInt(key, value). The same applies to every payload getter.
  • Remove null checks on the result of GetDecision. It now always returns a result.
  • Code that caught the exception from calling GetDecision before the SDK was ready can go. The call now logs a warning and returns Baseline.
  • If your game has its own decision logic, run it when HasPayload is false.
  • Set your iOS minimum deployment target to 16.0 or later.
After upgrading, run PIO/Generate Code Constants and recompile.

Breaking changes

  • GetDecision always returns a result and never returns null. With tracking disabled it returns a Baseline result with no payload and makes no network call. Before the SDK is ready it logs a warning and returns Baseline instead of throwing. To upgrade, replace d?.GetInt(key, value) ?? value with d.GetInt(key, value) and remove null checks on GetDecision.
  • The minimum iOS version is now 16.0.

Features

  • Add HasPayload, which is true only when PIO sent payload values, so a game with its own decision logic can keep running it when there is no payload.
  • GetJson(key, default) takes a default, like the other payload getters.
  • Serve on-device decisions with the model each player is assigned to. Existing installs download the model once into a new cache.
2026-11-04
Internal changes only. Nothing in your build changes.
Fixes
2026-10-28

Fixes

  • Fix SQLite initialisation on iOS devices so events can be stored locally.
FeaturesFixes
2026-10-28

Features

  • Validate numeric SDK options, including queue capacity, flush intervals and decision timeouts, and report invalid values with their units.

Fixes

  • Check schema compatibility before serving decisions on the device; use cloud decisions when the schema is incompatible.
FeaturesFixes
2026-10-13

Features

  • Return the configured fallback for retired actions and report the retirement through PIO.OnError.

Fixes

  • Declare the Unity audio module dependency required by the SDK.
  • Fix state-key handling in on-device decisions.
Features
2026-10-04

Features

  • Allow redistribution of the SDK inside games under the SDK licence.
  • Make the SDK available through packages.pioneeroptimisation.com.
Features
2026-10-04

Features

  • Include locally recorded state with cloud decision requests to keep decision state consistent.
FeaturesFixes
2026-10-03

Features

  • Persist the server-issued user proof and send it when authenticating returning players.
  • Generate typed option-payload accessors and warn in the Editor when the dashboard schema changes.
  • Expose the chosen option’s payload through DecisionResult.
  • Include device details and the installation timestamp with events.
  • Apply serving settings to on-device decisions.
  • Serve eligible decisions on the device by default, with sampled cloud comparisons.

Fixes

  • Recover authentication after an initial connection failure and restore decision routing.
  • Preserve SQLite when Unity strips unused code so events can still be stored.
  • Fix HTTP client setup that could throw in game players.
  • Enable the exception support required by native state collection on iOS.
Features
2026-07-28

Features

  • Compare on-device decisions with cloud decisions for diagnostics while continuing to serve the cloud result.
Features
2026-07-26

Features

  • Include decision_source in decision events so you can identify where a decision was made.
Breaking changesFeatures
2026-07-26

Breaking changes

  • Remove PIO.TrackReward. Report outcomes with PIO.TrackEvent(eventType, value) so the platform can derive reward signals.

Features

  • Generate action identifiers that reflect whether an action is active or retired.
  • Add on-device decision routing and cache downloaded model bundles.
  • Handle the cloud policy for players without previous activity.
  • Accept non-negative numeric values in PIO.TrackEvent.
  • Mark Editor and development-build events as internal traffic.
  • Emit foreground dwell heartbeats that pause when the game is in the background.
  • Record local state and include the state used to serve a decision in decision events.
  • Suppress App Tracking Transparency prompts and advertising identifier collection for child-directed projects.
  • Collect device_region, an uppercase two-letter country or region code from the device’s regional settings. This supports region-aware decisions and comparisons with network-derived country data for fraud checks. Omit the code when unavailable. It reflects regional preferences, not physical location; the SDK collects the code but does not perform fraud checks.
Features
2026-07-12

Features

  • Add pio.events.* helpers for standard game events.
Features
2026-07-12

Features

  • Include the state used by the cloud in decision events.
  • Expand automatic state collection for decision requests.
Breaking changesFeaturesFixes
2026-07-10

Breaking changes

  • Rename PioSettings.GameId to ProjectId and change backend URL paths from /accounts/{account_id}/games/{game_id}/... to /accounts/{account_id}/projects/{project_id}/.... Existing PioSettings.asset values migrate automatically.

Features

  • Include contract and model versions in decision events.

Fixes

  • Include the SQLite libraries needed to store events on Android and iOS.
FeaturesFixes
2026-06-29

Features

  • Add an in-game debug overlay, enabled through PioConfig.ShowDebugOverlay.
  • Add a Roslyn analyser to validate TrackEvent and SetState keys.
  • Authenticate with automatic retries and background token refresh.
  • Generate action constants and refresh schema information when the Editor regains focus.
  • Configure the SDK through a PioSettings asset and initialise it with PIO.Init().
  • Enable or disable tracking when player consent changes.
  • Request cloud decisions with PIO.GetDecision and automatically record decision events.
  • Add setup, integration verification, decision simulation and play-mode diagnostics under the PIO Editor menu.
  • Use one PioSettings asset across setup, code generation and integration verification.
  • Report SDK errors through PIO.OnError.
  • Add PIO.TrackEvent, PIO.TrackReward and PIO.SetState for game events, rewards and custom decision state.
  • Store events in a local SQLite queue and send them in background batches.
  • Warm the HTTPS connection before authentication.
  • Persist a stable user identifier across launches.
  • Add offline mode through PioOptions.OfflineMode.
  • Target the production service by default.
  • Start a new session after the configured background timeout.
  • Collect and serialise device and game state for decision requests.

Fixes

  • Use configured fallbacks when authentication fails during initialisation.
  • Close the event queue before an Editor domain reload to prevent crashes.
  • Rename state fields processor_frequency to cpu_frequency and mono_used_mb to mono_used.