diff --git a/mobile/src/lib/platform.ts b/mobile/src/lib/platform.ts index 32bdb5f..8cd8cbd 100644 --- a/mobile/src/lib/platform.ts +++ b/mobile/src/lib/platform.ts @@ -91,3 +91,8 @@ export function getFeatureValue { return killSwitchClient.check(); } + +/** Flush buffered telemetry when the app moves to background (pair with init in `initPlatform`). */ +export function flushTelemetry(): void { + telemetryClient.flush(); +}