Android Bypass Captive Portal

I want the user of my Android application to be able to connect to a network that is not on the network without having to launch a browser to accept the terms of service.

Is there something like iOS CaptiveNetwork for Android?

http://developer.apple.com/library/ios/#documentation/SystemConfiguration/Reference/CaptiveNetworkRef/Reference/reference.html

+4
source share
2 answers

Because of all the various installations of portable portals, you can never do it reliably. Apple also does not work for half the time, and in most cases the browser starts to launch for the user, who then transfers them to the page with the portal that has not been executed to coordinate / login / etc.

Make your application a running browser if it cannot access the connection (or because it does not redirect traffic, it does not receive the expected response). You might want to check out the highlighted file that is unique to your application, for example GET http://www.example.com/check/captive.htm , if the contents of the file are β€œsuccess,” then you are kind if the file leads to something also, behind the captive portal and launching the browser - this is the right way to handle it.

+2
source

For someone who is looking for this question as a user, not a developer, there are several applications on Google Play that will help you as a user. For developers: some of them also offer APIs for use in other applications. Some examples:

  • WiFi Login
  • Logging In AfterConnect Online
  • Captivate (shows a login screen, not an automatic login)

And to get around the latest version of Android that disables Wi-Fi when it detects a portable portal, try this app: Wifi Portal Connect. Then it will work together with one of the applications proposed above for reconnecting to Wi-Fi, and then other applications will be able to automatically log into the system.

Each individual portal is different, so keep that in mind, and not about application issues if it doesn't work, but applications become more flexible and automatically detect systems, so try a few.

0
source

Source: https://habr.com/ru/post/1479421/


All Articles