Skip to content

Commit 8b905e9

Browse files
committed
Add a 30s delay to signal when JS is ready to receive events
1 parent 00addf0 commit 8b905e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ios/VydiaRNFileUploader.m

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,12 @@ - (void)startObserving {
5555
// JS side is ready to receive events; create the background url session if necessary
5656
// iOS will then deliver the tasks completed while the app was dead (if any)
5757
NSString *appGroup = nil;
58-
double delayInSeconds = 0.5;
58+
double delayInSeconds = 30;
5959
dispatch_time_t popTime = dispatch_time(DISPATCH_TIME_NOW, delayInSeconds * NSEC_PER_SEC);
6060
dispatch_after(popTime, dispatch_get_main_queue(), ^(void){
6161
[self urlSession:appGroup];
6262
});
63-
}
63+
}
6464

6565
+ (void)setCompletionHandlerWithIdentifier: (NSString *)identifier completionHandler: (void (^)())completionHandler {
6666
if ([BACKGROUND_SESSION_ID isEqualToString:identifier]) {

0 commit comments

Comments
 (0)