Merge pull request #2755 from krille-chan/krille/android-deep-link-fix
chore: Follow up android deep link
This commit is contained in:
commit
69ba666b47
3 changed files with 3 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue