-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Need login for internet #39
Comments
If you have a look at the connection flags (using the reachabilityFlags method) and check kSCNetworkReachabilityFlagsInterventionRequired is set, that will let you know the app needs to present a login browser. |
That's not working either: Code: Output: From my mac: And if I open a browser I get to a webpage where I have to authenticate |
I'm also having difficulty with this scenario. It would be really nice to have a simple solution to this situation because working DNS without a working Internet is the same to app users: I need to tell them they have a network problem. A good example is free airport Wifi. Although I have |
I can't really do anything about captive portals like this. The best bet would be to do this at the application level i.e.
|
It would be cool if reachability would help out with this for example set an endpoint Or trying to fetch the header from google.com and see if it says google in it or something else, e.g. airport/hotel name of providing internet service. |
In my network I need to authenticate before having 'real' access to the internet. Before that authentication I can resolve DNS hostnames to IP but not more.
Reachability always tells me that I am connected as long as I get an DNS reply. There should be an option to check e.g. with a ping request or maybe even do a HEAD http request to see if we have 'real' internet.
The text was updated successfully, but these errors were encountered: