开发者

WebKitErrorFrameLoadInterruptedByPolicyChange what is that?

开发者 https://www.devze.com 2023-04-13 02:17 出处:网络
I get WebKitErrorFrameLoadInterruptedByPolicyChange in (void)webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error

I get WebKitErrorFrameLoadInterruptedByPolicyChange in

  • (void)webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error

using FBDialog when trying to share an URL for the first time in all next try are 开发者_Python百科OK.

Do you have an idea why?

Thanks


Are you sure that you receive WebKitErrorFrameLoadInterruptedByPolicyChange?

There is a problem with SSO in Facebook connect. When an application become active after giving authorization in Safari or Facebook App, web view fails to load your initial share request.

I receive Error Domain=NSURLErrorDomain Code=-999. You can change if statement in (void)webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error as follow to fix it:

if (!(([error.domain isEqualToString:@"NSURLErrorDomain"] && error.code == -999) ||
      !([error.domain isEqualToString:@"WebKitErrorDomain"] && error.code == 102))) {
    [self dismissWithError:error animated:YES];
}

https://github.com/ShareKit/ShareKit/issues/56

0

精彩评论

暂无评论...
验证码 换一张
取 消