khoih-prog / ESPAsync_WiFiManager

This is an ESP32 (including ESP32-S2 and ESP32-C3) / ESP8266 WiFi Connection Manager, using ESPAsyncWebServer, with fallback web configuration portal. Use this library for configuring ESP32, ESP8266 modules' WiFi, etc. Credentials at runtime. You can also specify static DNS servers, personalized HostName, fixed or random AP WiFi channel. With examples supporting ArduinoJson 6.0.0+ as well as 5.13.5- . Using AsyncDNSServer instead of DNSServer now.
MIT License
291 stars 73 forks source link

Captive portal is not triggered on IOS #35

Closed reneklootwijk closed 3 years ago

reneklootwijk commented 3 years ago

On my iPhone running IOS version 14.3 the captive portal is not triggered. When I connect to the AP the first time I have to explicitly go to 192.168.100.1 in a browser to get to the config screen. I tried other frameworks, e.g. AutoConnect, and there the captive portal is automatically triggered.

haydenmkoch commented 3 years ago

Try without setting a static IP for the AP I.e remove ESPAsync_wifiManager.setAPStaticIPConfig(...) This solved the issue for me and the captive portal now triggers on the default 192.168.4.1

khoih-prog commented 3 years ago

@haydenmkoch

Thanks for helping here. You're absolutely correct.

The iPhone (or a WebBrowser on any device) will auto-redirect to the Captive Portal IP 192.168.4.1, which is a default AP IP set by ESP (private-code) cores. Currently, the only way Captive Portal is auto-triggered and opened is to use that 192.168.4.1 AP IP. Otherwise, you have to manually open the CP.