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:
parent
4ee604be76
commit
e920d724e4
@ -91,3 +91,8 @@ export function getFeatureValue<T = boolean | string | number | Record<string, u
|
|||||||
export async function checkKillSwitch(): Promise<{ disabled: boolean; message: string | null }> {
|
export async function checkKillSwitch(): Promise<{ disabled: boolean; message: string | null }> {
|
||||||
return killSwitchClient.check();
|
return killSwitchClient.check();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Flush buffered telemetry when the app moves to background (pair with init in `initPlatform`). */
|
||||||
|
export function flushTelemetry(): void {
|
||||||
|
telemetryClient.flush();
|
||||||
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user