Git Product home page Git Product logo

captivate's People

Contributors

zach-klippenstein avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

captivate's Issues

Portal tracking, to eventually support auto-login

On portal login, centrally map portal URLs to login HTTP requests to attempt to build a database of login requests. Eventually, the database could be downloaded, and if the user connects to a portal with a known URL, the login request could be automatically sent, without user interaction.

This is a large task, with both a client component and some sort of web-based server component (using Parse, so no actual server coding is needed).

java.net.UnknownHostException when wifi disabled and not connected to a network

In InetAddress.lookupHostByName().

Stack trace:

java.lang.RuntimeException: Error executing request
at com.zachklipp.captivate.captive_portal.HttpResponseContentsDetector.executeRequestOrThrow(HttpResponseContentsDetector.java:80)
at com.zachklipp.captivate.captive_portal.HttpResponseContentsDetector.onCheckForPortal(HttpResponseContentsDetector.java:56)
at com.zachklipp.captivate.captive_portal.PortalDetector.checkForPortal(PortalDetector.java:50)
at com.zachklipp.captivate.service.PortalDetectorService.checkForPortal(PortalDetectorService.java:164)
at com.zachklipp.captivate.service.PortalDetectorService.onHandleIntent(PortalDetectorService.java:147)
at com.zachklipp.captivate.util.StickyIntentService$WorkerThread.handleMessage(StickyIntentService.java:114)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:130)
at android.os.HandlerThread.run(HandlerThread.java:60)
Caused by: java.net.UnknownHostException: www.apple.com
at java.net.InetAddress.lookupHostByName(InetAddress.java:506)
at java.net.InetAddress.getAllByNameImpl(InetAddress.java:294)
at java.net.InetAddress.getAllByName(InetAddress.java:256)
at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:136)
at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:164)
at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:119)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:428)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:555)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:487)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:465)
at com.zachklipp.captivate.captive_portal.HttpResponseContentsDetector.executeRequestOrThrow(HttpResponseContentsDetector.java:76)
... 8 more

Allow auto-checkin to Foursquare/Facebook/Google on login

Should figure out where the user likely is with high confidence (e.g. search based on lat/long, title of login page?), and provide minimal UI on the login screen to allow checkin on various services. UI should be extremely small, and allow the user to choose which services to checkin to and how in a separate UI (either slide-in, dialog, or settings).

Copious logging on Wifi connect

All debug logs are being printed in release build.

Should disable most log output when built for release (debuggable="false").

Localize

Parent issue for any localization work.

java.net.SocketException in HttpResponseContentsDetector.onCheckForPortal()

Applies to version 1.1.0

This exception will be caught and logged, instead of crashing, in v1.1.1+.

Will leave until I can check for a bug in the state machine, otherwise this isn't affecting anything.

Source method: OSNetworkSystem.connectStreamWithTimeoutSocketImpl()

java.lang.RuntimeException: Error executing request
at com.zachklipp.captivate.captive_portal.HttpResponseContentsDetector.executeRequestOrThrow(HttpResponseContentsDetector.java:80)
at com.zachklipp.captivate.captive_portal.HttpResponseContentsDetector.onCheckForPortal(HttpResponseContentsDetector.java:56)
at com.zachklipp.captivate.captive_portal.PortalDetector.checkForPortal(PortalDetector.java:50)
at com.zachklipp.captivate.service.PortalDetectorService.checkForPortal(PortalDetectorService.java:164)
at com.zachklipp.captivate.service.PortalDetectorService.onHandleIntent(PortalDetectorService.java:147)
at com.zachklipp.captivate.util.StickyIntentService$WorkerThread.handleMessage(StickyIntentService.java:114)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:123)
at android.os.HandlerThread.run(HandlerThread.java:60)
Caused by: java.net.SocketException: Network unreachable
at org.apache.harmony.luni.platform.OSNetworkSystem.connectStreamWithTimeoutSocketImpl(Native Method)
at org.apache.harmony.luni.platform.OSNetworkSystem.connect(OSNetworkSystem.java:115)
at org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:244)
at org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:533)
at java.net.Socket.connect(Socket.java:1074)
at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:119)
at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:153)
at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:164)
at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:119)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:348)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:555)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:487)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:465)
at com.zachklipp.captivate.captive_portal.HttpResponseContentsDetector.executeRequestOrThrow(HttpResponseContentsDetector.java:76)
... 8 more

Portal detection broken

Portal detector starts, log shows which portal detector implementation is being used, then fails to detect the portal.

Confirmed at Canadian Starbucks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.