Describe the bug
We are an non-MAUI app (part system service backend, part WPF UI frontend.) After we migrated from our 4.0.0 version of LD to 5.9.0 we noticed that the SDK stopped recognizing that the internet came back if you started the app without internet and then turned it back on. We have made a simple demonstrator console app and could reproduce this effect.
To reproduce
- Plain .NET 9 console
- Reference LaunchDarkly.ClientSdk 5.9.x.
- Turn the WiFi off.
- LdClient.Init(config, context, 10s). Init returns Initialized=false, DataSourceStatus=NetworkUnavailable, NetworkAccess=Local.
- Turn the network back on.
Observed behaviour
polled NetworkAccess flips to Internet, but ConnectivityChanged never fires; DataSourceStatus stays NetworkUnavailable; evaluations keep returning the fallback. Never recovers.
Expected behavior
(similar to 4.0.0): reconnects, DataSourceStatus -> Valid, real value returned.
Logs
4.0.0 and 5.9.6 run.txt
SDK version
5.9.0 and 5.9.6 (but all that use MAUI libraries will be affected)
Language version, developer tools
.NET 9.0.
OS/platform
Windows 11
Additional context (code example used)
var config = Configuration.Builder(mobileKey, ConfigurationBuilder.AutoEnvAttributes.Disabled)
.Persistence(Components.NoPersistence).Build();
var client = LdClient.Init(config, ctx, TimeSpan.FromSeconds(10)); // network is OFF here
client.DataSourceStatusProvider.StatusChanged += (s, st) => Log($"status -> {st.State}");
client.FlagTracker.FlagValueChanged += (s, e) => Log($"FlagValueChanged {e.Key} -> {e.NewValue}");
// then poll every 2s: client.DataSourceStatusProvider.Status.State and client.BoolVariation(flag,false)
// turn network back ON mid-run and observe.
I would be very appreciative if the MAUI requirement was dropped from this SDK. Most .NET applications relying on Launch Darkly are not running MAUI, or even any UI layer at all and are unable to use Launch Darkly at all due to this. Also apologizes I marked it as package:sdk/server but you don't have a client package option available in the list.
Describe the bug
We are an non-MAUI app (part system service backend, part WPF UI frontend.) After we migrated from our 4.0.0 version of LD to 5.9.0 we noticed that the SDK stopped recognizing that the internet came back if you started the app without internet and then turned it back on. We have made a simple demonstrator console app and could reproduce this effect.
To reproduce
Observed behaviour
polled NetworkAccess flips to Internet, but ConnectivityChanged never fires; DataSourceStatus stays NetworkUnavailable; evaluations keep returning the fallback. Never recovers.
Expected behavior
(similar to 4.0.0): reconnects, DataSourceStatus -> Valid, real value returned.
Logs
4.0.0 and 5.9.6 run.txt
SDK version
5.9.0 and 5.9.6 (but all that use MAUI libraries will be affected)
Language version, developer tools
.NET 9.0.
OS/platform
Windows 11
Additional context (code example used)
I would be very appreciative if the MAUI requirement was dropped from this SDK. Most .NET applications relying on Launch Darkly are not running MAUI, or even any UI layer at all and are unable to use Launch Darkly at all due to this. Also apologizes I marked it as
package:sdk/serverbut you don't have a client package option available in the list.