I have the same problem as in https://www.b4x.com/android/forum/t...achine-is-not-on-the-network-response.117816/.
i.e. after reconnecting to a router using Andoid 10+ I get the error: (SocketException) java.net.SocketException: socket failed: ENONET (Machine is not on the network).
I've found a potential workaround on Github https://github.com/JuanSeBestia/react-native-wifi-reborn/issues/185 as follows:
Thanks
i.e. after reconnecting to a router using Andoid 10+ I get the error: (SocketException) java.net.SocketException: socket failed: ENONET (Machine is not on the network).
I've found a potential workaround on Github https://github.com/JuanSeBestia/react-native-wifi-reborn/issues/185 as follows:
Can anyone help with how to implement this in B4A?I found how to get this going.... If you do WifiManager.forceWifiUsageWithOptions(true, { noInternet: true }); just after connection succeeds, then a WifiManager.forceWifiUsageWithOptions(false, { noInternet: false }); after disconnection, it will trigger Android to recheck if the new connection is valid, and network requests seem to work again.
Thanks