From 0c00ee64754d25387984ce557f0de1c80a323eb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Ku=C3=9Fowski?= Date: Tue, 24 Mar 2026 07:36:03 +0100 Subject: [PATCH] chore: Follow up android deep link --- android/app/src/main/AndroidManifest.xml | 2 +- lib/config/app_config.dart | 1 + lib/utils/sign_in_flows/calc_redirect_url.dart | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index 15a09759..81733047 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -106,7 +106,7 @@ - + diff --git a/lib/config/app_config.dart b/lib/config/app_config.dart index 8eae9406..ad595036 100644 --- a/lib/config/app_config.dart +++ b/lib/config/app_config.dart @@ -31,6 +31,7 @@ abstract class AppConfig { 'https://fluffychat.im/faq/#how_do_i_get_stickers'; static const String appId = 'im.fluffychat.FluffyChat'; static const String appOpenUrlScheme = 'im.fluffychat'; + static const String appSsoUrlScheme = 'im.fluffychat.auth'; static const String sourceCodeUrl = 'https://github.com/krille-chan/fluffychat'; diff --git a/lib/utils/sign_in_flows/calc_redirect_url.dart b/lib/utils/sign_in_flows/calc_redirect_url.dart index 2a5d1cce..34aadea7 100644 --- a/lib/utils/sign_in_flows/calc_redirect_url.dart +++ b/lib/utils/sign_in_flows/calc_redirect_url.dart @@ -9,7 +9,7 @@ import 'package:universal_html/html.dart' as html; var redirectUrl = kIsWeb ? Uri.parse(html.window.location.href.split('#').first.split('?').first) : (PlatformInfos.isMobile || PlatformInfos.isMacOS) - ? Uri.parse('${AppConfig.appOpenUrlScheme.toLowerCase()}:/login') + ? Uri.parse('${AppConfig.appSsoUrlScheme.toLowerCase()}:/login') : Uri.parse('http://localhost:3001/login'); if (kIsWeb && withAuthHtmlPath) {