You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 3, 2025. It is now read-only.
At the moment, WifiUtils only binds to WiFi networks on Android 10 so API calls are performed over the specified network. For non-Android 10, it seems sufficient most of the time to disable all other configurations and just enable the configuration we want. However, a coworker (using OnePlus 5T, Android 8.1) has recently reported an issue where sometimes an API call will reach our hardware, but other times will raise a SocketTimeoutException. I'm confident that this is because the call is trying to go through his mobile data since, if he turns it off, they reach the hardware as expected.
Can we bind to WiFi for every SDK level that it's supported? The bindProcessToNetwork call is SDK 23 and even pre-23 we can do setProcessDefaultNetwork(network) I believe.
I've already started work on this, but I thought I would ask what your thoughts are on this and if you would be interested in a PR once I've confirmed that this fixes our issue.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
At the moment, WifiUtils only binds to WiFi networks on Android 10 so API calls are performed over the specified network. For non-Android 10, it seems sufficient most of the time to disable all other configurations and just enable the configuration we want. However, a coworker (using OnePlus 5T, Android 8.1) has recently reported an issue where sometimes an API call will reach our hardware, but other times will raise a SocketTimeoutException. I'm confident that this is because the call is trying to go through his mobile data since, if he turns it off, they reach the hardware as expected.
Can we bind to WiFi for every SDK level that it's supported? The bindProcessToNetwork call is SDK 23 and even pre-23 we can do setProcessDefaultNetwork(network) I believe.
I've already started work on this, but I thought I would ask what your thoughts are on this and if you would be interested in a PR once I've confirmed that this fixes our issue.
The text was updated successfully, but these errors were encountered: