-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
iphone taking 30 seconds to open captive portal #868
Comments
*WM: Request redirected to captive portal
*WM: Handle root
*WM: Handle root
*WM: Request redirected to captive portal
*WM: Handle root
*WM: Request redirected to captive portal
*WM: Handle root
*WM: Info
*WM: Sent info page
*WM: Request redirected to captive portal
*WM: Handle root
*WM: [2] WiFi Scan ASYNC completed in 2194 ms
*WM: [2] WiFi Scan ASYNC found: 6
*WM: [3] -> captive.apple.com
*WM: [2] <- Request redirected to captive portal
*WM: [2] <- HTTP Root
*WM: [3] -> 192.168.4.1
*WM: [3] lastconxresult: WL_IDLE_STATUS
*WM: [2] Scan is cached 5451 ms ago
*WM: [3] -> captive.apple.com
*WM: [2] <- Request redirected to captive portal
*WM: [2] <- HTTP Root
*WM: [3] -> 192.168.4.1
*WM: [3] lastconxresult: WL_IDLE_STATUS
*WM: [2] WiFi Scan ASYNC started
*WM: [2] WiFi Scan ASYNC completed in 2193 ms
*WM: [2] WiFi Scan ASYNC found: 8
*WM: [2] Portal Timeout In 116 seconds
*WM: [2] Portal Timeout In 86 seconds
*WM: [2] <- HTTP Root
*WM: [3] -> www.apple.com
*WM: [2] <- Request redirected to captive portal
*WM: [2] <- HTTP Root
*WM: [3] -> 192.168.4.1
*WM: [3] lastconxresult: WL_IDLE_STATUS
*WM: [2] WiFi Scan ASYNC started
*WM: [3] -> www.apple.com
*WM: [2] <- Request redirected to captive portal
*WM: [2] <- HTTP Root
*WM: [3] -> 192.168.4.1
*WM: [3] lastconxresult: WL_IDLE_STATUS
*WM: [2] WiFi Scan ASYNC started
*WM: [2] WiFi Scan ASYNC completed in 786 ms
*WM: [2] WiFi Scan ASYNC found: 6 40 seconds, wtf |
Any updates on this issue yet? My ESP is doing exactly the same, however I am on an old version of iOS (10.3.3). It's taking a good 30-40secs to connect, but connecting with a laptop takes <5seconds. I'm using core 2.5.0, arduino 1.8.9 and Wifimanager-Dev branch from GitHub |
From what I can tell it is ios only, maybe a dns issue or something ios changed, I will need some more observations from users and other captive portals |
@mozzhead164 can you try rolling back to core 2.4.2 - see #866 (just curious to see if you get different behaviour here) |
I tried 2.3 as in first post |
@tablatronix wouldn't you expect there to also be differences between 2.3 and 2.4.2? I am just wondering if this is the same upstream issue as identified in #866 |
I do not see any change in esp lib, I am leaning towards ios itself, you can clearly see the hits the os just does not launch the captive portal until 3rd hit, that does not mean that there is not some workaround or specific data is expects now |
@tablatronix I'll test this on my iphone against 2.3 core and see if I can also get apple-side debug logs |
@tablatronix I think I can reproduce this on my phone. iPhone 7 running iOS 12.2 Unfortunately the iOS logs did not appear to contain any detail about connection attempts, captive portal etc. I tried a few different times with varying results but usually in the log was three redirects to root. Different behaviour on the device such as sometimes the captive portal appearing and disappearing a few times, other times it would just take ages to open the browser window. Once it worked nearly instantly. I have attached the log from WM |
I captured the page body that's generated along with the content length that was sent. Here's the code I used:
I attach the raw log (copy and pasted from visual studio) and the raw body which I'm getting 3371 bytes from (content length is sent as 3368) |
Thanks, I have not have time to break out wireshark and do some testing |
How do you set up wireshark to sniff this? |
ugh apple is useless Submit feedback I guess.. |
https://www.reddit.com/r/iOSBeta/comments/bptxxr/bugs_wifi_especially_captive_portal_just_terrible/ |
Change the iPhone wifi settings to Manual IPv4 configuration and enter: |
you can always open the browser yourself, why would you have to set static ips ? |
without setting the static IP in the settings, after about 5 seconds, the network will be disconnected. I will not be able to open browser, enter address, and log in to the correct network |
oh mine doesn't disconnect, It just never opens the captive portal , hmm I wonder if this is something else or 2 issues.. |
@bfaliszek you might want to turn on esp debugging and get some detailed logs of the phy client disconnecting |
I recently installed iOS 13 beta 1 and everything works well. I think Apple finally fixed it. |
Nice I will see if any changes on my side. |
Just got this from apple
|
@tablatronix I also received such an email. Apple has already fixed this in iOS13b1. Since then I have not had problems opening the captive portal. |
Hi, I'm having troubles connecting to both a Mac and an Android phone. I'm able to connect to the network on both of them, but the portal does not appear, and I'm not able to connect by entering the ip address in a browser either. Maybe some more updates? Have you tried it lately? @tablatronix |
Yeah this has been working fine since the last update. Not sure what you issue might be. |
This is new, I rolled back to esp 2.3 and its the same, must be a change in IOS, can anyone else confirm, seems like it does not launch until after several hits to the server
The text was updated successfully, but these errors were encountered: