Skip to content

Commit b467297

Browse files
Merge pull request #10192 from cmgustavo/bug/handle-open-url-01
fix(open-url): adds delay to open url when app is full closed
2 parents 9346745 + 86944ab commit b467297

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/app/app.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,10 +417,11 @@ export class CopayApp {
417417
const lastUrl: string = (window as any).handleOpenURL_LastURL || '';
418418
if (lastUrl && lastUrl !== '') {
419419
delete (window as any).handleOpenURL_LastURL;
420+
// Important delay to have all views loaded before process URL
420421
setTimeout(() => {
421422
this.logger.info('App was opened by custom url scheme');
422423
this.handleOpenUrl(lastUrl);
423-
}, 0);
424+
}, 2000);
424425
}
425426
}
426427

0 commit comments

Comments
 (0)