This package allows monitoring of Network Capabilities from Android devices.
Right now, the following information are available for build versions greater or equal Build.VERSION_CODES.Q
:
link_upstream_bandwidth_kbps
link_downstream_bandwidth_kbps
signal_strength
transport_type
(wifi
orcellular
)
For versions older than Build.VERSION_CODES.Q, it also provides the following information:
legacy_transport_type
(wifi
orcellular
)legacy_transport_subtype
(possible values can be found here)
FlutterNetworkCapabilities flutterNetworkCapabilitiesPlugin = FlutterNetworkCapabilities();
final info = await flutterNetworkCapabilitiesPlugin.getNetworkInfo();
debugPrint(info);
The next step for contributing would be to implement the plugin for iOS as well. You can open a Pull Request and it will be reviewed by one of the mainteiners.