feat: Android SSO in webview
This commit is contained in:
parent
bfa6e653e8
commit
cfb104d668
2 changed files with 3 additions and 3 deletions
|
|
@ -208,11 +208,11 @@ class HomeserverPickerController extends State<HomeserverPicker> {
|
|||
: AppConfig.appOpenUrlScheme.toLowerCase() + '://login';
|
||||
final url =
|
||||
'${Matrix.of(context).client.homeserver?.toString()}/_matrix/client/r0/login/sso/redirect/${Uri.encodeComponent(id)}?redirectUrl=${Uri.encodeQueryComponent(redirectUrl)}';
|
||||
if (PlatformInfos.isIOS) {
|
||||
if (PlatformInfos.isMobile) {
|
||||
browser ??= ChromeSafariBrowser();
|
||||
browser.open(url: Uri.parse(url));
|
||||
} else {
|
||||
launch(redirectUrl, forceWebView: true);
|
||||
launch(redirectUrl);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue