fluttercommunity / plus_plugins

Flutter Community Plus Plugins
BSD 3-Clause "New" or "Revised" License
1.62k stars 984 forks source link

[Request]: connectivity_plus on linux: use systemd-networkd as fallback when network-manager isn't available #1451

Open d-loose opened 1 year ago

d-loose commented 1 year ago

Plugin

connectivity_plus

Use case

connectivity_plus currently relies solely on network-manager to check for a connection under linux. If network-manager isn't available or the network is managed in a different way, connectivity_plus will always think there's no connection available. See https://github.com/fluttercommunity/plus_plugins/issues/1304, https://github.com/ubuntu-flutter-community/software/issues/674

Proposal

It would be great to support some alternatives that can be used as a fallback in case network-manager isn't available. A sensible option would be systemd-networkd, which can be accessed through the org.freedesktop.network1 DBus interface.

KRTirtho commented 1 year ago

This is definitely a critical issue as production applications are affected by it Since connectivity_plus uses (Network Manager) under the hood at least the Linux dependency should be mentioned in the README as Network Manager is not often the default network activity controller in many Linux distros