oracle / cordova-plugin-wkwebview-file-xhr

Cordova Plugin for WebView File XHR
Universal Permissive License v1.0
138 stars 120 forks source link

Newer XCode restricts webView to be called only from main thread #6

Closed velochy closed 6 years ago

velochy commented 6 years ago

XCode shows the following runtime errors: [WKScriptMessage body] must be used from main thread only [WKScriptMessage webView] must be used from main thread only This is a restriction since iOS 11 (so it is relatively recent)

Offending lines are 407-409 of CDVWKWebViewFileXhr.m

gvanmat commented 6 years ago

Thanks for reporting the issue.

gvanmat commented 6 years ago

@velochy Checked in a fix for iOS 11. Please help me verify the fix.