Captive Portal Mobile Devices redirect
-
I am looking for a how to docs on redirecting mobile devices after discovering the AP to the CP authentication page.
-
Completely up to the client device. Your job is to make sure they have access to DNS before going through the portal.
-
what forces the web browser on the mobile device to pop up?
-
I have plenty of clients using mobile devices of various kinds and as far as I know nobody has had any issues that haven't been initially caused by wrongly set DNS at the client end or over-zealous security settings, again on the client.
Not sure what you mean by "what causes the web browser on the mobile device to pop up?" The client just tries browsing to any external site and the system automatically redirects to the login page for the CP.
-
I'm looking for ways to force the browser to popup as soon as the client connects to the AP.
-
You can't force the client to do anything. Their behavior is completely up to them. Several threads here already on the subject. Try a search.
-
actually there is chatter about how to use captiveportal-mobile_detect.php but nothing specific for novice user
-
This is an advanced topic, not a novice one. You cannot force the client to do anything. The client uses whatever method it wants to try to determine if a portal is present then performs whatever actions it wants according to the results of those tests.
Like I said, all you can do is make sure your portal is functioning and the client has good access to global DNS resolution before punching through the portal. Everything else is up to the client.
-
take a look https://github.com/jjamor/pfsense-cpsamplepages/blob/master/CORP/captiveportal-mobile_detect.php
-
Why should I take a look I know how it works.
NO PHP WILL BE EXECUTED ON THE SERVER until the client makes an http request. Whatever is in that php script it is completely up to the client what is done with it.
What is so hard to understand? I'm out.