chore: Follow up android deep link

This commit is contained in:
Christian Kußowski 2026-03-24 07:36:03 +01:00
commit 0c00ee6475
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652
3 changed files with 3 additions and 2 deletions

View file

@ -106,7 +106,7 @@
<action android:name="android.intent.action.VIEW" /> <action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" /> <category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="im.fluffychat" android:host="login" android:pathPrefix="/"/> <data android:scheme="im.fluffychat.auth" android:path="/login"/>
</intent-filter> </intent-filter>
</activity> </activity>

View file

@ -31,6 +31,7 @@ abstract class AppConfig {
'https://fluffychat.im/faq/#how_do_i_get_stickers'; 'https://fluffychat.im/faq/#how_do_i_get_stickers';
static const String appId = 'im.fluffychat.FluffyChat'; static const String appId = 'im.fluffychat.FluffyChat';
static const String appOpenUrlScheme = 'im.fluffychat'; static const String appOpenUrlScheme = 'im.fluffychat';
static const String appSsoUrlScheme = 'im.fluffychat.auth';
static const String sourceCodeUrl = static const String sourceCodeUrl =
'https://github.com/krille-chan/fluffychat'; 'https://github.com/krille-chan/fluffychat';

View file

@ -9,7 +9,7 @@ import 'package:universal_html/html.dart' as html;
var redirectUrl = kIsWeb var redirectUrl = kIsWeb
? Uri.parse(html.window.location.href.split('#').first.split('?').first) ? Uri.parse(html.window.location.href.split('#').first.split('?').first)
: (PlatformInfos.isMobile || PlatformInfos.isMacOS) : (PlatformInfos.isMobile || PlatformInfos.isMacOS)
? Uri.parse('${AppConfig.appOpenUrlScheme.toLowerCase()}:/login') ? Uri.parse('${AppConfig.appSsoUrlScheme.toLowerCase()}:/login')
: Uri.parse('http://localhost:3001/login'); : Uri.parse('http://localhost:3001/login');
if (kIsWeb && withAuthHtmlPath) { if (kIsWeb && withAuthHtmlPath) {