tripflex / WifiWizard2

A Cordova plugin for managing Wifi networks (new version of WiFiWizard) - Latest is version 3+
https://www.npmjs.com/package/cordova-plugin-wifiwizard2
Apache License 2.0
123 stars 146 forks source link

WiFi immediately disconnected if there is no internet (Android 9 Pie) #92

Open jainsuneet opened 5 years ago

jainsuneet commented 5 years ago

Issue type

Select all that apply

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)

mknnaren commented 4 years ago

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.

QimatLuo commented 4 years ago

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)

QimatLuo commented 4 years ago

@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.