Skip to content
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

Captive Portal does't work on Android devices... #841

Open
e-music opened this issue Mar 4, 2019 · 8 comments
Open

Captive Portal does't work on Android devices... #841

e-music opened this issue Mar 4, 2019 · 8 comments
Labels
Question User Question member to member support

Comments

@e-music
Copy link

e-music commented Mar 4, 2019

Hi,

I tried on many different devices, but Captive Portal doesn't work on any of my Android devices. Only on my iPhone, the config portal immediately comes up as soon as the phone is connected to the ESP8266 AP.

Any advice?

Thanks

@tablatronix tablatronix added the Question User Question member to member support label Mar 5, 2019
@ghost
Copy link

ghost commented Mar 5, 2019

I noticed this on a stock Samsung Galaxy S9+ running Android 8.1, the "Sign On" page isn't brought up automatically, but I can't reproduce it on my LineageOS 15.1 (Oreo) or LineageOS 16.0 (Pie).

Do you have captive portal detection disabled? What Android devices (make, model, Android version) have you tried it on?

@tablatronix
Copy link
Collaborator

tablatronix commented Mar 5, 2019

The latest on this is that, android (some versions) either have a sandboxed dns system, or use hardcoded google dns 8.8.8.8 and ignores our captive portal there is an issue open in esp arduino if you want to find it and read the comments.

@ghost
Copy link

ghost commented Mar 5, 2019

Seems like espressif/arduino-esp32#1037 is what you're referring to?

@e-music
Copy link
Author

e-music commented Mar 5, 2019

@h4waii
Yes, exactly the same issue!
I tried on Samsung J5 Prime, S8, and Android Tablet. All with the same result!

@ghost
Copy link

ghost commented Mar 6, 2019

@e-music Setting 8.8.8.8 as AP IP seems to work around this for me. WiFiManager.setAPStaticIPConfig(IPAddress(8,8,8,8), IPAddress(8,8,8,8), IPAddress(255,255,255,0));
before calling autoConnect() and see how you fare.

@tablatronix
Copy link
Collaborator

Thanks all, I do not have android to test on

@e-music
Copy link
Author

e-music commented Mar 6, 2019

@h4waii
Thank you. I will try it asap!

@e-music
Copy link
Author

e-music commented Mar 6, 2019

@h4waii
WOW!! Changing the IP has solved the issue and now the Captive Portal works on all Android devices!
Thank you very much for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question User Question member to member support
Projects
None yet
Development

No branches or pull requests

2 participants