sparshg / wifi-login

Skip the wifi-login portal
GNU General Public License v3.0
11 stars 1 forks source link

Login w/ mobile data on gives timeout error #4

Open prakharb5 opened 1 year ago

prakharb5 commented 1 year ago
  1. Keep mobile data enabled.
  2. Enable the login service in app.
  3. Press the quick settings icon to login
  4. "Login timeout error", and the app is not able to login to the wifi.
  5. Turn off mobile data, and now the login is successful.
  6. Turn on mobile data again, and now it again says "login timeout error".

It is not just about the status not getting updated. It actually was failing to log into the wifi

In the end, I had to manually login via my browser.

sparshg commented 1 year ago

Can't reproduce, the connectivity manager ensures that the request goes through wifi, can you mention your device and android version?

mmjsmohit commented 1 year ago

Works if I turn off the mobile data and turn it on just after that. I don't think we can do this programmatically without root access.

sparshg commented 1 year ago

@mmjsmohit Are you getting login timeout error with mobile data on?

prakharb5 commented 1 year ago

Can't reproduce, the connectivity manager ensures that the request goes through wifi, can you mention your device and android version?

@sparshg My device is Samsung Galaxy A52s, running android 13 (OneUI 5.0)

Is it possible that the bug could be due to Samsung's feature of switching to mobile data when there is no internet over wifi?

sparshg commented 1 year ago

Can you try with that feature switched off?

Also when the background service is on, and the wifi is then turned on, does it automatically run the script on connection? (Do you get login successful or timeout error without login tile?)

prakharb5 commented 1 year ago

I tried it out with that feature switched off.

Somehow, the mobile data still remained connected along with wifi (could be a bug, not sure)

Turning off mobile data, and then connecting wifi logged in successfully. I get login successful without the login tile too. No disruption on turning on mobile data.

I guess the conclusion is that the Samsung's "switch to mobile data" feature is messing with the app