{"action":"created","issue":{"url":"https://api.github.com/repos/XWebView/XWebView/issues/20","labels_url":"https://api.github.com/repos/XWebView/XWebView/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/XWebView/XWebView/issues/20/comments","events_url":"https://api.github.com/repos/XWebView/XWebView/issues/20/events","html_url":"https://github.com/XWebView/XWebView/pull/20","id":110209990,"number":20,"title":"Fix: loadHTMLString must start a local server even though in iOS9.x","user":{"login":"fernandodev","id":3255250,"avatar_url":"https://avatars.githubusercontent.com/u/3255250?v=3","gravatar_id":"","url":"https://api.github.com/users/fernandodev","html_url":"https://github.com/fernandodev","followers_url":"https://api.github.com/users/fernandodev/followers","following_url":"https://api.github.com/users/fernandodev/following{/other_user}","gists_url":"https://api.github.com/users/fernandodev/gists{/gist_id}","starred_url":"https://api.github.com/users/fernandodev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fernandodev/subscriptions","organizations_url":"https://api.github.com/users/fernandodev/orgs","repos_url":"https://api.github.com/users/fernandodev/repos","events_url":"https://api.github.com/users/fernandodev/events{/privacy}","received_events_url":"https://api.github.com/users/fernandodev/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-10-07T11:57:48Z","updated_at":"2015-12-17T11:09:46Z","closed_at":"2015-12-17T11:09:46Z","pull_request":{"url":"https://api.github.com/repos/XWebView/XWebView/pulls/20","html_url":"https://github.com/XWebView/XWebView/pull/20","diff_url":"https://github.com/XWebView/XWebView/pull/20.diff","patch_url":"https://github.com/XWebView/XWebView/pull/20.patch"},"body":"iOS 9.x have [`loadData:MIMEType:characterEncodingName:baseURL:`](https://developer.apple.com/library/ios/documentation/WebKit/Reference/WKWebView_Ref/#//apple_ref/occ/instm/WKWebView/loadData:MIMEType:characterEncodingName:baseURL:) and the old [`loadHTMLString:baseURL:`](https://developer.apple.com/library/ios/documentation/WebKit/Reference/WKWebView_Ref/#//apple_ref/occ/instm/WKWebView/loadHTMLString:baseURL:). \r\n\r\nIf you run on a simulator you can use any baseURL pointing to bundle resources. But for iOS devices you can't do that because file access is restrict to `tmp` folder. So It's still necessary to emulate a local server to fetch those resources.\r\n"},"comment":{"url":"https://api.github.com/repos/XWebView/XWebView/issues/comments/165424733","html_url":"https://github.com/XWebView/XWebView/pull/20#issuecomment-165424733","issue_url":"https://api.github.com/repos/XWebView/XWebView/issues/20","id":165424733,"user":{"login":"fernandodev","id":3255250,"avatar_url":"https://avatars.githubusercontent.com/u/3255250?v=3","gravatar_id":"","url":"https://api.github.com/users/fernandodev","html_url":"https://github.com/fernandodev","followers_url":"https://api.github.com/users/fernandodev/followers","following_url":"https://api.github.com/users/fernandodev/following{/other_user}","gists_url":"https://api.github.com/users/fernandodev/gists{/gist_id}","starred_url":"https://api.github.com/users/fernandodev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fernandodev/subscriptions","organizations_url":"https://api.github.com/users/fernandodev/orgs","repos_url":"https://api.github.com/users/fernandodev/repos","events_url":"https://api.github.com/users/fernandodev/events{/privacy}","received_events_url":"https://api.github.com/users/fernandodev/received_events","type":"User","site_admin":false},"created_at":"2015-12-17T11:09:46Z","updated_at":"2015-12-17T11:09:46Z","body":"I'm closing that because it got old and I think a better solution for embedded webservice"}}