Hi, i have set a hotspot and i would like to know if one of two scenarios is possible.
1st Scenario) Wifi → Captive Portal ->login html page → Press Button = Link to open Camera on phone → Scan Qr Code → Redirect to html page locally on Mikrotik
2nd Scenario) Wifi → Captive Portal Auto Login ->a.login redirects to an html in Mikrotik → Press Button = Link to open Camera on phone → Scan Qr Code → Redirect to html page locally on Mikrotik or Web.
I know that with my current configuration (in the 2nd scenario) if i type https:// localgatewayip/login in my browser it works fine
Press Button = Link to open Camera on phone → Scan Qr Code → Redirect to html page on Web.
I think the captive portal prevents the mobile camera from opening.
I found a workaround in this using HTML but i have issues.
I edited the login.html file and that way the page i would like the user to view opens directly in his browser while he still hasn’t internet connection yet and there he can use the link to open QR Scanner corectly.
function openbr() {
location.href =“intent://192.168.4.1/cpv.html#Intent;scheme=https;action=android.intent.action.VIEW;end;”;
return false;
}
window.openbr()
“”“the cpv.html file is in Mikrotik files”“”
Two issues:
Doesn’t work with all phones but i think that’s an HTML issue.
Before the browser pop-ups i see an error page in the captive portal with the green android bot saying Web Page Not Available ERROR_URL_SCHEME can i hide this somehow? Thank you.