We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c414828 commit 6b7f94cCopy full SHA for 6b7f94c
src/sdk.ts
@@ -200,13 +200,14 @@ export function nativeCrash(): void {
200
/**
201
* Flushes all pending events in the queue to disk.
202
* Use this before applying any realtime updates such as code-push or expo updates.
203
+ * Not yet working on Android
204
*/
-export async function flush(): Promise<boolean> {
205
+export async function flush(timeout: number): Promise<boolean> {
206
try {
207
const client = getCurrentHub().getClient<NativescriptClient>();
208
209
if (client) {
- const result = await client.flush();
210
+ const result = await client.flush(timeout);
211
212
return result;
213
}
0 commit comments