# Changelog

All notable changes to the ViKPI Unity SDK. The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/)
and the package uses [Semantic Versioning](https://semver.org/).

## [0.3.0] - 2026-12-04

### Added

- **App id check.** Each session sends the app's identity (`Application.identifier`: Android
  package name, iOS/desktop bundle id; the page origin on WebGL). Register it in the dashboard
  under **Project settings → Platforms**: only registered apps may send data with your key.
- A clear console error when the server refuses an unregistered app, naming the app id to add.

### Changed

- Devices are listed and searchable in the dashboard (**Devices** page) by their random install
  id, and can be given names to follow testers or players across sessions. No hardware id or MAC
  address is collected: phones don't expose them and store policies forbid it.

## [0.2.1] - 2026-12-03

### Fixed

- `NullReferenceException` in `OnApplicationQuit` (and every frame) after scripts were recompiled
  during Play Mode: the SDK now detects the lost state and restarts cleanly with a new session.
- Testing in the Editor: when you stop Play Mode, the Editor now uploads what the session left
  queued (the session end and last video chunk) right away, so the replay appears within seconds
  instead of after the next Play or the server's 30-minute idle timeout.

## [0.2.0] - 2026-12-03

Store-policy compliance (Google Play User Data & Families policies, App Store guidelines 5.1.1/5.1.2,
privacy manifests, GDPR consent).

### Added

- **Consent before collection.** Consent Mode: built-in prompt (default), manual
  (`Vikpi.SetConsent`) or not required. No data and no install id before the player agrees.
- **Required privacy policy URL**: builds fail without an https URL when the SDK is configured; the
  settings window shows the same checks live.
- `Vikpi.ShowConsentPrompt()`, `Vikpi.OpenPrivacyPolicy()`, `Vikpi.ConsentStatus`.
- `Vikpi.RequestDataDeletion()`: erases the install's sessions, videos and events on the server
  (`POST /v1/privacy/delete`) and forgets the install id.
- **App Targets Children**: the SDK collects nothing in child-directed apps.
- **Mask Text Inputs** (on by default): `InputField` and `TMP_InputField` are blacked out in videos.
- iOS privacy manifest `Plugins/iOS/PrivacyInfo.xcprivacy`, with a post-build check on iOS.
- Build warnings for consent mode "not required", disabled input masking and non-publishable keys.

### Changed

- Withdrawing consent stops the SDK immediately and erases data still queued on the device.
- Auto Start now waits for consent.

## [0.1.0] - 2026-12-02

### Added

- Automatic sessions with device, OS, app version and screen metadata.
- Session video: GPU downscale, async readback, JPEG on a background thread, VKF1 chunks.
- Touch and mouse tracking for both the Input System package and the legacy Input Manager.
- Scene changes, per-second performance samples, and exception and error capture.
- `Vikpi.Track`, `SetUserId`, `PauseRecording`, `ResumeRecording`, `Flush`, `Init` and `Shutdown`.
- `VikpiMask` component that blacks out personal data on the device before encoding.
- Durable offline outbox with retries, storage cap and Wi-Fi-only video.
- Project Settings page and Tools menu.
