From 8332ef8b9fadd8f9f03707d30630a7bc90414811 Mon Sep 17 00:00:00 2001 From: edde746 <86283021+edde746@users.noreply.github.com> Date: Mon, 26 Jan 2026 15:26:27 +0100 Subject: [PATCH] fix: tv browser sign in --- lib/screens/auth_screen.dart | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/screens/auth_screen.dart b/lib/screens/auth_screen.dart index ea2dcf3d..4f7c844f 100644 --- a/lib/screens/auth_screen.dart +++ b/lib/screens/auth_screen.dart @@ -158,7 +158,11 @@ class _AuthScreenState extends State { // Open browser (in-app for mobile, external for desktop) final uri = Uri.parse(authUrl); if (await canLaunchUrl(uri)) { - await launchUrl(uri, mode: LaunchMode.inAppBrowserView); + // On TV, use inAppWebView (simpler WebView) instead of Chrome Custom Tabs + final mode = PlatformDetector.isTV() + ? LaunchMode.inAppWebView + : LaunchMode.inAppBrowserView; + await launchUrl(uri, mode: mode); } else { throw Exception(t.errors.couldNotLaunchUrl); }