data_connection_checker
data_connection_checker copied to clipboard
A pure Dart utility library that checks for an internet connection by opening a socket to a list of specified addresses, each with individual port and timeout. Defaults are provided for convenience.
DataConnectionChecker().onStatusChange.listen always returns 'DataConnectionStatus.disconnected ' status when the application is in the background.
I just migrated this package to dart null safety and fixed all warnings. You can publish this version in addition to main version in pub
flutter: No internet :( Reason: flutter: [AddressCheckResult(AddressCheckOptions(InternetAddress('1.1.1.1', IPv4), 53, 0:00:10.000000), false), AddressCheckResult(AddressCheckOptions(InternetAddress('8.8.4.4', IPv4), 53, 0:00:10.000000), false), AddressCheckResult(AddressCheckOptions(InternetAddress('208.67.222.222', IPv4), 53, 0:00:10.000000), false)] I am using a school wifi connection and data_connection_checker...
It would be a great enhancement if you could add a property to add custom addresses instead of the default ones. example code would be: ``` DataConnectionChecker(ipAddresses:[]); ```
Hello, please check the screenshot, it's from my app https://well-spoken.app . Apple is mysterious in their review process, I haven't changed anything in networking for 20 updates, and now they...
Hello, Please take into account that in Flutter 1.22 next breaking change is coming, so please consider about applying next changes: https://flutter.dev/docs/release/breaking-changes/network-policy-ios-android ![image](https://user-images.githubusercontent.com/26088845/91996799-11c57880-ed42-11ea-92db-ea55b04e19a1.png)
A SocketException is thrown whenever I call the hasConnection method when the device is offline. ``` class NetworkInfoImpl implements NetworkInfo{ final DataConnectionChecker connectionChecker; NetworkInfoImpl(this.connectionChecker); @override Future get isConnected => connectionChecker.hasConnection;...
If mobile data is on, and the data has gone. The plugin shows that there is internet connectivity.
The [connectivity](https://pub.dev/packages/connectivity) package does not support native dart. Can you add the option to check if the device have network? (internet DataConnectionChecker will stay the same). It will be very...