Giter Club home page Giter Club logo

Comments (5)

rbaumbach avatar rbaumbach commented on June 17, 2024

@josipbernat Thanks for the heads up. Once I have some free time, I will check it out.

from instagramsimpleoauth.

ibnusina avatar ibnusina commented on June 17, 2024

I have same issue as @josipbernat, the dismiss behavior occur at:

- (void)webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error
{
    if (error.code != 102) {
        [self completeWithError:error];
        
        if (self.shouldShowErrorAlert) {
            [self showErrorAlert:error];
        }
        
        [self dismissViewController];
    }
    
    [self hideProgressHUD];
}

Should the View Controller dismissed on success only? Or should there any additional checking on the error type?

from instagramsimpleoauth.

dani2906 avatar dani2906 commented on June 17, 2024

Same issue here. Was this resolved?

from instagramsimpleoauth.

rbaumbach avatar rbaumbach commented on June 17, 2024

@ibnusina I have a few issues with your pull request at this point.

  1. There seems to be an issue that @josipbernat and @dani2906 are having where they are not being presented with the Instagram login web view. This is the root issue that needs to be resolved instead of providing work arounds regarding the handling of the dismissal of the view controller.
  2. In regards to the dismissal, there are two schools of thought on how view controllers should be dismissed. The first being the current implementation (the presented view controller handles it's own dismissal) and the other being that the view controller that presented this controller should also be the view controller that dismisses it. If the latter is wanted, the dismissal should be done in the completion handler (or using the delegate pattern if that is warranted) in the presenting view controller for both success and failure and dismissal should be removed completely from the presented view controller. Either dismissal for both success and failure are both kept (current implementation), or both dismissals need to be removed.
  3. And lastly, I require code coverage for any updates to this library. This library currently has 100% code coverage and your PR doesn't contain any updates to the tests. I think your current update will break current tests.

from instagramsimpleoauth.

wm649548372 avatar wm649548372 commented on June 17, 2024

@rbaumbach Same issue, and sometimes normal sometimes fail, is there the solution?

from instagramsimpleoauth.

Related Issues (7)

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.