Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

ChildBrowser - IOS 1.5 *** WebKit discarded an uncaught exception in the webView:decidePolicyForNavigationAction:request:frame:decisionListener: delegate: <NSInvalidArgumentException> Application tried to present modally an active controller <MainViewCont #89

Open
Ruddiger opened this Issue · 0 comments

1 participant

@Ruddiger

This happend in IOS because it won't let you re-add a modal item and subsequent calls to showWebPage try to recall the childBrowser. A quick fix is to do the following in showWebPage (ChildBrowserCommand.m):

#ifdef CORDOVA_FRAMEWORK
    CDVViewController* cont = (CDVViewController*)[ super viewController ];
    childBrowser.supportedOrientations = cont.supportedOrientations;
    childBrowser.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
    @try {
        [ cont presentModalViewController:childBrowser animated:YES ];
    }@catch(NSException * e){
        NSLog(@"ALready visible");
    }
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.