1

web view is not able to load URL(www.example.com/index.html?jsonFooter=hideHeaderFooter) i am provoding..this URL works fine in web browser..after a long time digging into this issue, i observe that using web view delegate method for finding error i observed web kit error domain 102..can someone tell me how to solve this issue? thanks in advance..following is my sample code

[linkWebView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@/index.html?jsonFooter=hideHeaderFooter",urlStr]]]]
rmaddy
  • 314,917
  • 42
  • 532
  • 579
jayant rawat
  • 318
  • 2
  • 12

3 Answers3

2

I was facing the same issue, but this fixed it. Check if your link is https or http. Incase of http, you will need to update the info plist -> app transport security settings -> allow arbitrary loads in web content -> YES

Swamita Gupta
  • 51
  • 1
  • 5
1

This can occur when webView:shouldStartLoadWithRequest:navigationType is returning NO (false).

Ensure this is returning yes.

1

if you are getting WebKitErrorDomain appears and code is 102 -- It means that webkit can not show page for now at this moment, Its because there may be too many sub-requests and you have to wait a little more.

Wolverine
  • 4,264
  • 1
  • 27
  • 49