diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index 41c8d4e0..60864924 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -1,6 +1,7 @@ + + + + + + + diff --git a/lib/screens/auth/login_screen.dart b/lib/screens/auth/login_screen.dart index 462e1ab3..d97da84a 100644 --- a/lib/screens/auth/login_screen.dart +++ b/lib/screens/auth/login_screen.dart @@ -1,3 +1,5 @@ +import 'dart:io'; + import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; @@ -61,7 +63,9 @@ class _LoginScreenState extends ConsumerState { Future _handleOAuthSignIn({required bool google}) async { setState(() => _isLoading = true); final auth = ref.read(authControllerProvider); - final redirectTo = kIsWeb ? Uri.base.origin : null; + final redirectTo = kIsWeb + ? Uri.base.origin + : (Platform.isAndroid ? 'io.supabase.tasq://login-callback' : null); try { if (google) {