fix(mobile): export flushTelemetry for background buffer flush

Expose telemetryClient.flush() from platform.ts for AppState wiring.

Made-with: Cursor
This commit is contained in:
Saravana Achu Mac 2026-03-31 01:51:03 -07:00
parent 4ee604be76
commit e920d724e4

View File

@ -91,3 +91,8 @@ export function getFeatureValue<T = boolean | string | number | Record<string, u
export async function checkKillSwitch(): Promise<{ disabled: boolean; message: string | null }> {
return killSwitchClient.check();
}
/** Flush buffered telemetry when the app moves to background (pair with init in `initPlatform`). */
export function flushTelemetry(): void {
telemetryClient.flush();
}