WifiWizard2
WifiWizard2 copied to clipboard
WiFi immediately disconnected if there is no internet (Android 9 Pie)
Issue type
Select all that apply
- [x] Bug
- [ ] Enhancement
- [ ] Task
- [ ] Question
- [ ] Other
Description
Android 9 (Pie), once connected to Wifi (which has no internet) it immediately disconnects and sometimes does't connect at all.
Using WifiWizard2.connect(SSID, true)
Expected behavior: With bindall set in the connect it should be able to connect to wlan with no internet connection
Actual behavior: Cannot connect to wlan without internet
Reproduces how often: 100%
Versions
3.1.0
Additional Information
No issues with Android version 5 to 8 (Tested)
Even I am facing the same issue. If I connect to the WiFi SSID with no internet for the first time, it stays connected. But if I connect back to it again, it disconnects immediately and connects back to the previous WiFi profile which has internet.
Similar issue, I test on Google Pixel 3 Android 10.
After I call WifiWizard2.connect(SSID, true, PASSWORD, 'WPA', false)
, it will try to connect the no internet access wifi for a while, then switch to another wifi which has internet access.
It will not keep the connection on the wifi I want.
(test on 3.3.1)
@mknnaren by the way, I found a workaround is to call disableWifi()
first, then do connect()
.
This workaround work for SAMSUNG Galaxy A40s Android 9.
Unfortunately, it not works for Google Pixel 3 Android 10.