Open koddr opened 3 years ago
Side note: You can as a temporary fix override the startDeeplinkObserver
in your Supabase state.
/// Create AuthState.
class AuthState<T extends StatefulWidget> extends SupabaseAuthState<T> {
@override
void startDeeplinkObserver() {
if (Platform.isAndroid || Platform.isIOS) {
return super.startDeeplinkObserver();
}
print('***** Overridden startDeeplinkObserver for Desktop support');
}
}
Hi,
I consistently get a weird bug on macOS (desktop) when adding
Supabase.initialize()
to themain()
function. On Android and iOS (both emulators and real devices) this bug does notβ¦ πTo Reproduce
My βone-fileβ
./lib/main.dart
(for short):Expected behavior
It would be great to run a desktop macOS (and probably Windows and GNU/Linux) app with Supabase without errors. Like it does on Android and iOS.
Screenshots
I run project with VS Code standard debugger (F5):
The debugger shows line 154 in the
/usr/local/Caskroom/flutter/2.5.3/flutter/packages/flutter/lib/src/services/platform_channel.dart
file:OK. I click βContinueβ button (F5) and debugger shows line 15 in
/usr/local/Caskroom/flutter/2.5.3/flutter/.pub-cache/hosted/pub.dartlang.org/uni_links-0.5.1/lib/uni_links.dart
file:Next, click F5 once again and see line 52 in
/usr/local/Caskroom/flutter/2.5.3/flutter/.pub-cache/hosted/pub.dartlang.org/supabase_flutter-0.2.9/lib/src/supabase_deep_linking_mixin.dart
file:If I click F5 again, debugger run app with this message:
π€ Yes, the application runs and works fineβ¦ but it is very inconvenient when debugging and developing! I constantly have to press F5 many times every time I change the code.
System information
Additional context
Commands
flutter clean
andflutter pub get
did not resolve the problem.