Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WKWebViewJavascriptBridge webView:didReceiveAuthenticationChallenge:completionHandler:] was not called' #346

Open
Mygirls opened this issue May 16, 2018 · 2 comments

Comments

@Mygirls
Copy link

Mygirls commented May 16, 2018

implementation the WKNavigationDelegate that use method

  • (void)webView:(WKWebView *)webView didReceiveAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge completionHandler:(void (^)(NSURLSessionAuthChallengeDisposition, NSURLCredential * _Nullable))completionHandler
    {
    NSLog(@"didReceiveAuthenticationChallenge");
    }

Error:

Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Completion handler passed to -[WKWebViewJavascriptBridge webView:didReceiveAuthenticationChallenge:completionHandler:] was not called'

@ipad4
Copy link

ipad4 commented May 28, 2018

try this

  • (void)webView:(WKWebView *)webView didReceiveAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge completionHandler:(void (^)(NSURLSessionAuthChallengeDisposition disposition, NSURLCredential * _Nullable credential))completionHandler
    {
    completionHandler(NSURLSessionAuthChallengePerformDefaultHandling, nil);
    }

@SVinay27
Copy link

hi @ipad4 where to add it or which file in react native..
i am also facing this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants