tzapu / WiFiManager

ESP8266 WiFi Connection manager with web captive portal
http://tzapu.com/esp8266-wifi-connection-manager-library-arduino-ide/
MIT License
6.63k stars 1.98k forks source link

Question: Is possible change deep link to redirect to an App instead of Captive Portal #1734

Open JonyPower opened 7 months ago

JonyPower commented 7 months ago

First of all thanks to the amazing work with this library!!! I would like to know how could be possible chage the behavior after login in wifi, instead of redirect to Captive Portal I wanna open my app if it was already instaled or browser to my website if not.

ateker01 commented 7 months ago

If I understand this correctly +1 this...

When the captive portal launches, it redirects to http://192.168.4.1/ how can i change the redirect link to something else? for example .... http://192.168.4.1/wifi? instead

When the credentials are saved, the url directs to http://192.168.4.1/wifisave how can i change the redirect link to something else? perhaps one URL if the credentials are correct, and another URL if the credentials are not correct

JonyPower commented 7 months ago

"how can i change the redirect link to something else? for example .... http://192.168.4.1/wifi? instead" Yeah could be something like this, customize the redirect address page that I could choose the link, like "http://mywebsite.com/nameoftheproject/appstore"

The idea would be for the user to create an account on my App and the App sends the information via http post to be saved on the ESP, such as Firebase credentials or another backend.

tablatronix commented 7 months ago

You can add your own routes check the SUPER example, not sure how you can override the root/ I have to think about this more but its not hard to poke in the code and change these