chore: Follow up android deep link

pull/2755/head
Christian Kußowski 4 weeks ago
parent 7c30cdd442
commit 0c00ee6475
No known key found for this signature in database
GPG Key ID: E067ECD60F1A0652

@ -106,7 +106,7 @@
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<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>
</activity>

@ -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';

@ -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) {

Loading…
Cancel
Save