mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 00:55:52 +03:00
[GH-ISSUE #868] iphone taking 30 seconds to open captive portal #733
Labels
No labels
📶 WiFi
🕸️ HTTP
Branch
DEV Help Wanted
Discussion
Documentation
ESP32
Example
Good First Issue
Hotfix
In Progress
Incomplete
Needs Feeback
Priority
QA
Question
Task
Upstream/Dependancy
bug
duplicate
enhancement
invalid
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/WiFiManager#733
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @tablatronix on GitHub (Apr 18, 2019).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/868
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
@tablatronix commented on GitHub (Apr 18, 2019):
40 seconds, wtf
@mozzhead164 commented on GitHub (Apr 28, 2019):
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
@tablatronix commented on GitHub (Apr 28, 2019):
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
@agrath commented on GitHub (May 2, 2019):
@mozzhead164 can you try rolling back to core 2.4.2 - see #866 (just curious to see if you get different behaviour here)
@tablatronix commented on GitHub (May 2, 2019):
I tried 2.3 as in first post
@agrath commented on GitHub (May 2, 2019):
@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've got an iphone so I could test this if it would help, I have an iPhone 7, running iOS 12.2
@tablatronix commented on GitHub (May 2, 2019):
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
@agrath commented on GitHub (May 2, 2019):
@tablatronix I'll test this on my iphone against 2.3 core and see if I can also get apple-side debug logs
@agrath commented on GitHub (May 2, 2019):
@tablatronix I think I can reproduce this on my phone.
iPhone 7 running iOS 12.2
Built WifiManager from commit
4873c7c632against esp8266 core 2.3.0Unfortunately the iOS logs did not appear to contain any detail about connection attempts, captive portal etc.
I couldn't find any reference to captive/esp across the whole log file (around 700 lines for the few minutes I was tailing it)
I am on windows but was tailing the device log using imobiledevice idevicesyslog.exe
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
wm_esp.log
@agrath commented on GitHub (May 2, 2019):
@tablatronix
I captured the page body that's generated along with the content length that was sent.
Manually verifying this in a text editor it doesn't seem to match.
The content length is being sent as 3368 (this is the log line right between HTTP Root Page and the dashes) but when manually checking between the start of the doctype (between the ! in serial log) and the end of </html> (which appears to have a trailing space) I get 3371
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)
wm-log.txt
http-raw-body.txt
@tablatronix commented on GitHub (May 2, 2019):
Thanks, I have not have time to break out wireshark and do some testing
@Daemach commented on GitHub (May 14, 2019):
How do you set up wireshark to sniff this?
@tablatronix commented on GitHub (May 24, 2019):
ugh apple is useless
https://discussions.apple.com/thread/250240069
Submit feedback I guess..
@bfaliszek commented on GitHub (May 24, 2019):
https://www.reddit.com/r/iOSBeta/comments/bptxxr/bugs_wifi_especially_captive_portal_just_terrible/
It seems that more people have a problem with it. I have iOS 12.4b2 and it does not work properly with me.
@bfaliszek commented on GitHub (May 24, 2019):
Change the iPhone wifi settings to Manual IPv4 configuration and enter:
IP Address: 192.168.4.2
Subnet Mask: 255.255.255.0
Router: 192.168.4.1
It does not break the connection to the network. However, you have to open the browser yourself and enter 192.168.4.1. There is a captive portal WiFiManager available.
@tablatronix commented on GitHub (May 24, 2019):
you can always open the browser yourself, why would you have to set static ips ?
@bfaliszek commented on GitHub (May 25, 2019):
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
@tablatronix commented on GitHub (May 25, 2019):
oh mine doesn't disconnect, It just never opens the captive portal , hmm I wonder if this is something else or 2 issues..
@tablatronix commented on GitHub (May 25, 2019):
@bfaliszek you might want to turn on esp debugging and get some detailed logs of the phy client disconnecting
@bfaliszek commented on GitHub (Jun 18, 2019):
I recently installed iOS 13 beta 1 and everything works well. I think Apple finally fixed it.
@tablatronix commented on GitHub (Jun 18, 2019):
Nice I will see if any changes on my side.
@tablatronix commented on GitHub (Dec 4, 2019):
Just got this from apple
@bfaliszek commented on GitHub (Dec 5, 2019):
@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.
@erikhjertholm commented on GitHub (Dec 7, 2020):
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
@tablatronix commented on GitHub (Dec 7, 2020):
Yeah this has been working fine since the last update. Not sure what you issue might be.