Closed kostadin24 closed 1 month ago
Whoever is using network_tools should call DartPingIOS.register() inside their main function. This is how it works in flutter. If I call this method inside spawned isolate it gives me exception mentioned in this issue I raised earlier that has currently no fix - https://github.com/point-source/dart_ping/issues/48
HostScannerService.instance.getAllPingableDevicesAsync doesn not work on iOS. On Android is fine. According to logs:
DartPingIOS.register() is not executed since Ping code is executed in separate Isolate and Ping.iosFactory is NULL.
I see DartPingIOS.register() is called in many places in network_tools and network_tools_flutter, but it shouild be called inside the work fuction of Isolate also.