Captive Portal Not Popping Up on Android device using WiFiManager by Tzapu for ESP32

Hello guys. I've been experiencing trouble while using the basic example of WiFiManager library by Tzapu. Days ago the captive sign portal did pop on my android device, but right now I don't see the captive sign in showing not only on my phone, as on friends' phone and laptop as well.

Any help will be appreciated, thank you.

@ptillisch I'm here again. If you don't mind helping me out

And did you enter your WiFi credentials then? The portal usually doesn't pop up once the WiFi credentials have been stored, because there is generally no need for it.
Turn off your router, restart the ESP, and see if it pops up then.

Are there any portal start delays or portal durations in your code.
Leo..

@Wawa Thanks for the reply.


I actually got the same result as the captive sign in did not pop up. And I haven't connected to any device.

I'm using Android 10

Hi @electricalman. You need to connect your Android device to that "AutoConnectAP" access point. The captive portal will only appear when the Android device is connected to that access point. It is normal and expected that the captive portal will not appear when the Android device is connected to another access point.

It looks strange. This is what I got.


Meanwhile, I haven't been connected to any network.

I don't understand.
That image shows the landing page of the portal, waiting for you to enter a password.
The basic example of WiFiManager uses this line for portal name and password.

res = wm.autoConnect("AutoConnectAP","password"); // password protected ap

So what happens when you enter "password" (all lower case) on your phone.
Leo..

@ptillisch @Wawa
Here's what I got whenever I tried to connect with the password. Still the captive sign in page is not popping up.

Check the code of the sketch you have running on the board to see what you configured the access point password as. As @Wawa said, the example sketches configure the AP to use the password "password", but you might have configured your sketch to use a different password.

res = wm.autoConnect("AutoConnectAP","password"); // password protected ap

Try changing that line to

res = wm.autoConnect("Portal"); // no password

Then find "Portal" in the WiFi networks list of your phone, and connect to it.
Leo..

Finally worked!


Thanks for the hint.