From e920d724e4612b40d05b5e2c0662f2a7ea7ef275 Mon Sep 17 00:00:00 2001 From: Saravana Achu Mac Date: Tue, 31 Mar 2026 01:51:03 -0700 Subject: [PATCH] fix(mobile): export flushTelemetry for background buffer flush Expose telemetryClient.flush() from platform.ts for AppState wiring. Made-with: Cursor --- mobile/src/lib/platform.ts | 5 +++++ 1 file changed, 5 insertions(+) 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(); +}