Giter Club home page Giter Club logo

twitteroauthview's People

Contributors

atermenji avatar takahikokawasaki avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

twitteroauthview's Issues

WebView not load content after press the back button and press again

Hello TakahikoKawasaki,

First of all thank you for the project.

I have integrated in my project TwitterOAuthView and TwitterOAuthActivity example. I have an activity from a button pricipal and call startActivityForResult.He TwitterOAuthActivity with some modification done to me and I return the end result after activity to login with Twitter.En WebView principle works correctly but when it starts and the screen Twitter login if you press the back button and then from the main actvidad press the back button login with Twitter WebView starts again but this time nothing appears on the screen and not have it appear as content or Webview resetee.Estoy are trying to treat it with the method onBackPressed () from TwitterOAuthActivity but not if TwitterOAuthView there or where I have to make changes as I see it is in the method OnPreExecute () of TwitterOAuthTask and does not reach the doInBackground ().

If you could give me some idea or help I would greatly appreciate it.

Thank you very much,

Jmdr

Blocks all application's AsyncTask executions on Android 4.x

When TwitterOAuthView has loaded Twitter's application authorization form, and the user navigates away from the fragment or activity containing the view, the underlying TwitterOAuthTask (which extends AsyncTask) remains blocked, as a result of the call to Object.wait() in its waitForAuthorization() method. However, this means that, on Android 4.x where only one AsyncTask can be executed at a time, any other AsyncTask belonging to the application will never start until TwitterOAuthTask receives a proper notification via Object.notify(), which will never be called.

As a side effect, on Android 4.x it's also impossible to load TwitterOAuthView two times in a row if the first time the user has navigated away from the fragment or activity containing the view, because the AsyncTask that loads Twitter's authorization page cannot be executed until the previous blocked AsyncTask receive an Object.notify() call.

insecure onReceivedSslError

Your LocalWebview class unconditionally calls handler.proceed() in onReceivedSslError, which is insecure. This effectively disables ssl entirely.

Callback url is displayed

Hi, I've found your solution for login to twitter on stackoverflow.
Here you say that if I pass "true" as DUMMY_CALLBACK_URL "TwitterOAuthView does not access the callback URL" but it does. The only difference with the example in your repo is that I'm starting the TwitterOAuthActivity from a fragment.

Orientation changes are not supported

When using TwitterOAuthView in an application capable of following the device orientation, the view's content disappears upon device rotations, leaving the view itself blank.

On second thought, this is probably related to issue #4.

No notification of clicks on Cancel button

When the Cancel button on Twitter's authorization page is pressed, the listener should be notified via a proper method, so that e.g. the view could be closed instead of showing the next page in Twitter's web flow.

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.