From cc30f7aa022e3f33f16c87b6df2b2cc1ecbc67d2 Mon Sep 17 00:00:00 2001 From: 21pages Date: Wed, 27 Mar 2024 15:51:30 +0800 Subject: [PATCH] handle boot args if initialLink is empty (#7537) Signed-off-by: 21pages --- flutter/lib/common.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/flutter/lib/common.dart b/flutter/lib/common.dart index 43a231b69..b1c3ad8a0 100644 --- a/flutter/lib/common.dart +++ b/flutter/lib/common.dart @@ -1863,7 +1863,8 @@ Future initUniLinks() async { // check cold boot try { final initialLink = await getInitialLink(); - if (initialLink == null) { + print("initialLink: $initialLink"); + if (initialLink == null || initialLink.isEmpty) { return false; } return handleUriLink(uriString: initialLink);