Replies: 6 comments 12 replies
-
|
Good question, thank you! In my solution (private repo, sorry) the next method works: My captivehandler: |
Beta Was this translation helpful? Give feedback.
-
|
In your example |
Beta Was this translation helpful? Give feedback.
-
|
Oh I see. I have a similar approach in my project but it does not always working. I got a popup window on Android once but never again. And mine is much more overcomplicated. I will try your solution! Do you think it would be worth adding to the svelteesp32 lib as a toggle able config flag? |
Beta Was this translation helpful? Give feedback.
-
|
Also you are registering an "onNotFound" handler for the captive portal but the svelteesp32 also uses that handler in spa mode. Isn't it conflicting? |
Beta Was this translation helpful? Give feedback.
-
|
Thank ou for your discussion! I fancy your ESP libs, repos, I like it! And welcome hungary! 🇭🇺 |
Beta Was this translation helpful? Give feedback.
-
|
Meanwhile I have integrated your solution to my project and it seems to work fine on a xiaomi android but not on my samsung s22. The s22 only popped up the captive portal once and never again :D Maybe I miss clicked something on the phone. Anyway, your solution is more minimal then mine and still working so I will continue using it. Thank you very much. The only problem I'm still facing is that in captive softap mode I want to redirect the user to the local ip of the esp32 no matter what they type in the url bar. But that will require the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey guys! I wonder if it would be possible to add support for ESPAsyncWebServer captive portal.
In the example: CaptivePortal example we can setup a handler but this creates another page. We want to use the same handlers on ap as on any other mode ( sta or eth ) but we need to pop up the web-app as soon as the user connects to the esp32's wifi.
Should this behaviour remain the user's choice instead of svelteesp32 responsibility or could this be integrated seamlessly?
Beta Was this translation helpful? Give feedback.
All reactions