supabase / supabase-flutter

Flutter integration for Supabase. This package makes it simple for developers to build secure and scalable products.
https://supabase.com/
MIT License
662 stars 155 forks source link

flutter: `app_links_linux` threw an error #956

Open arkryonia opened 2 days ago

arkryonia commented 2 days ago

Describe the bug flutter: app_links_linux threw an error:

'package:flutter/src/services/platform_channel.dart': Failed assertion: line 554 pos 7: '_binaryMessenger != null || BindingBase.debugBindingType() != null': Cannot set the method call handler before the binary messenger has been initialized. This happens when you call setMethodCallHandler() before the WidgetsFlutterBinding has been initialized. You can fix this by either calling WidgetsFlutterBinding.ensureInitialized() before this or by passing a custom BinaryMessenger instance to MethodChannel().. The app may not function as expected until you remove this plugin from pubspec.yaml

════════ Exception caught by services library ══════════════════════════════════
The following MissingPluginException was thrown while activating platform stream on channel com.llfbandit.app_links/events:
MissingPluginException(No implementation found for method listen on channel com.llfbandit.app_links/events)

To Reproduce

void main() async {
  WidgetsFlutterBinding.ensureInitialized();

  await Supabase.initialize(
    url: AppSecret.supabaseUrl,
    anonKey: AppSecret.supabaseAnonKey,
  );

  runApp(const MyApp());
}

Version : On Linux/macOS └── supabase_flutter 2.5.6 ├── supabase 2.2.2 │ ├── functions_client 2.2.0 │ ├── gotrue 2.8.1 │ ├── postgrest 2.1.2 │ ├── realtime_client 2.1.0 │ ├── storage_client 2.0.2

Vinzent03 commented 21 hours ago

Seems related to this issue. Which app_links version are you using?