Describe the bug
.start method immediately errors out with MissingPluginException on Android for both simulator and physical device. Is there an extra SDK integration needed?
To reproduce
- Add
launchdarkly_flutter_client_sdk: ^3.0.1 to pubspec.yaml
- After WidgetsFlutterBinding.ensureInitialized(); add:
final ldConfig = LDConfigBuilder(launchDarklyKey, AutoEnvAttributes.Enabled).build();
final ldContext = LDContextBuilder().build();
await LDClient.start(ldConfig, ldContext);
Expected behavior
A clear and concise description of what you expected to happen.
Logs
E/flutter (17494): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: MissingPluginException(No implementation found for method start on channel launchdarkly_flutter_client_sdk)
E/flutter (17494): #0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:308:7)
E/flutter (17494):
E/flutter (17494): #1 LDClient.startWithContext (package:launchdarkly_flutter_client_sdk/launchdarkly_flutter_client_sdk.dart:106:5)
E/flutter (17494):
Flutter version
>=3.0.6 <4.0.0
SDK version
4.0.1 and 2.1.0
OS/platform
Android