-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iOS: Add new method to connect to a SSIDPrefix protected only once, Android: Try to address issue #303 #377
base: master
Are you sure you want to change the base?
Conversation
ANDROID: Try to fix a network problem in concurrent connections (thanks to WiFiFlutter)
I guess it has some conflicts for this MR |
sorry where? |
Hi @notjulian why did you add timeout for removeWifiNetwork and disconnect on Android? Can you please add a check like this if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) { } and use the old behavior elsewhere? |
Hi, |
Hi @notjulian, sorry but what do you mean with "avoid timeout on disconnect"? In @JuanSeBestia library code on disconnect/removeWifiNetwork is there any timeout... you've added it on your pr, but I can't understand what is the purpose of adding a timeout on disconnect/removeWifiNetwork. Thank you |
If the disconnect take more time to complete, it will cancel and return |
For issue #303, I've tested it on a Pixel 7 running Android 14, as well as on other brands.
The fix is taken from WiFiFlutter concurrent-connections
Thanks to: @Martichou, @darhaywa and @daadu
Code example (for a hotspot without Internet), first connect, then forceWifiUsage true, before disconnect forceWiFiUsage to false