Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error running inside isolate #62

Open
guyluz11 opened this issue Feb 17, 2024 · 0 comments
Open

Error running inside isolate #62

guyluz11 opened this issue Feb 17, 2024 · 0 comments
Labels
needs triage Not yet verified

Comments

@guyluz11
Copy link

Description

When I try to run the code inside the isolate I get 2 bugs

If my code includes the line disableServiceTypeValidation(true); I am getting the following errors

'package:flutter/src/services/platform_channel.dart': Failed assertion: line 542 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().

And when I search for service await startDiscovery(serviceType, ipLookupType: IpLookupType.any); I am not getting any results.

Scenario

Use the plugin in my own application via Flutter dependency

Platform

Android

@sebastianhaberey sebastianhaberey added the needs triage Not yet verified label Mar 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage Not yet verified
Projects
None yet
Development

No branches or pull requests

2 participants